Skip to content

Commit 423db46

Browse files
author
KrishnaSai2020
committed
doctest fix for pandas-dev#42671
1 parent 202f1ca commit 423db46

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/io/stata.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,13 @@
162162
--------
163163
Read a Stata dta file:
164164
165-
>>> df = pd.read_stata('filename.dta') # doctest: +SKIP
165+
>>> df = pd.read_stata('docs_example_files/read_stata_example.dta')
166166
167167
Read a Stata dta file in 10,000 line chunks:
168168
169-
>>> itr = pd.read_stata('filename.dta', chunksize=10000) # doctest: +SKIP
170-
>>> for chunk in itr: # doctest: +SKIP
171-
... do_something(chunk)
169+
>>> itr = pd.read_stata('docs_examples/read_stata_example.dta', chunksize=10000)
170+
>>> for chunk in itr:
171+
>>> pass # do_something(chunk)
172172
"""
173173

174174
_read_method_doc = f"""\

0 commit comments

Comments
 (0)