Skip to content

Commit 70be8a9

Browse files
sinhrksjreback
authored andcommitted
DOC: Fix read_stata docstring
Author: sinhrks <[email protected]> Closes pandas-dev#13312 from sinhrks/stata_doc and squashes the following commits: a9a7357 [sinhrks] DOC: Fix read_stata docstring
1 parent af4ed0f commit 70be8a9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pandas/io/stata.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,14 @@
8989
Examples
9090
--------
9191
Read a Stata dta file:
92-
>> df = pandas.read_stata('filename.dta')
92+
93+
>>> df = pandas.read_stata('filename.dta')
9394
9495
Read a Stata dta file in 10,000 line chunks:
95-
>> itr = pandas.read_stata('filename.dta', chunksize=10000)
96-
>> for chunk in itr:
97-
>> do_something(chunk)
96+
97+
>>> itr = pandas.read_stata('filename.dta', chunksize=10000)
98+
>>> for chunk in itr:
99+
>>> do_something(chunk)
98100
""" % (_statafile_processing_params1, _encoding_params,
99101
_statafile_processing_params2, _chunksize_params,
100102
_iterator_params)

0 commit comments

Comments
 (0)