Skip to content

Commit c03c1d1

Browse files
committed
DOCS: Simplify explanation of read_csv nrows
1 parent 83fb858 commit c03c1d1

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

pandas/io/parsers/readers.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -268,17 +268,7 @@ class _read_shared(TypedDict, Generic[HashableT], total=False):
268268
skipfooter : int, default 0
269269
Number of lines at bottom of file to skip (Unsupported with ``engine='c'``).
270270
nrows : int, optional
271-
Number of rows of data to read. Useful for reading pieces of large files.
272-
The following rows are excluded from the count:
273-
274-
* The header row containing column names,
275-
* Rows before the header row, if ``header=1`` or larger,
276-
* Fully commented rows,
277-
* Rows skipped with ``skiprows``,
278-
* Skipped blank lines.
279-
280-
Records containing text with newline characters within quotes
281-
or escaped newline characters will be counted as one row.
271+
Maximum number of rows of data to return (excluding the column header). Useful for reading pieces of large files.
282272
na_values : Hashable, Iterable of Hashable or dict of {{Hashable : Iterable}}, optional
283273
Additional strings to recognize as ``NA``/``NaN``. If ``dict`` passed, specific
284274
per-column ``NA`` values. By default the following values are interpreted as

0 commit comments

Comments
 (0)