Skip to content

Commit daf9bca

Browse files
committed
DOC: low_memory in read_csv
1 parent b4e2d34 commit daf9bca

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

doc/source/io.rst

+7
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,13 @@ skipfooter : int, default ``0``
169169
Number of lines at bottom of file to skip (unsupported with engine='c').
170170
nrows : int, default ``None``
171171
Number of rows of file to read. Useful for reading pieces of large files.
172+
low_memory : boolean, default ``True``
173+
Internally process the file in chunks, resulting in lower memory use
174+
while parsing, but possibly mixed type inference. To ensure no mixed
175+
types either set ``False``, or specify the type with the ``dtype`` parameter.
176+
Note that the entire file is read into a single DataFrame regardless,
177+
use the ``chunksize`` or ``iterator`` parameter to return the data in chunks.
178+
(Only valid with C parser)
172179

173180
NA and Missing Data Handling
174181
++++++++++++++++++++++++++++

pandas/io/parsers.py

+7
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,13 @@
220220
warn_bad_lines : boolean, default True
221221
If error_bad_lines is False, and warn_bad_lines is True, a warning for each
222222
"bad line" will be output. (Only valid with C parser).
223+
low_memory : boolean, default True
224+
Internally process the file in chunks, resulting in lower memory use
225+
while parsing, but possibly mixed type inference. To ensure no mixed
226+
types either set False, or specify the type with the `dtype` parameter.
227+
Note that the entire file is read into a single DataFrame regardless,
228+
use the `chunksize` or `iterator` parameter to return the data in chunks.
229+
(Only valid with C parser)
223230
224231
Returns
225232
-------

0 commit comments

Comments
 (0)