Skip to content

Commit 79afdfe

Browse files
committed
Update readers.py
1 parent 85c1a4f commit 79afdfe

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pandas/io/parsers/readers.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,7 @@ def read_csv(
967967
968968
* To read rows 1,000,000 through 1,999,999:
969969
``read_csv(..., skiprows=1000000, nrows=999999)``
970+
970971
na_values : Hashable, Iterable of Hashable or dict of {{Hashable : Iterable}},
971972
optional
972973
Additional strings to recognize as ``NA``/``NaN``. If ``dict``
@@ -1551,6 +1552,7 @@ def read_table(
15511552
15521553
* To read rows 1,000,000 through 1,999,999:
15531554
``read_csv(..., skiprows=1000000, nrows=999999)``
1555+
15541556
na_values : Hashable, Iterable of Hashable or
15551557
dict of {{Hashable : Iterable}}, optional
15561558
Additional strings to recognize as ``NA``/``NaN``.
@@ -1587,7 +1589,7 @@ def read_table(
15871589
* ``bool``. If ``True`` -> try parsing the index.
15881590
* ``None``. Behaves like ``True`` if ``date_format`` is specified.
15891591
* ``list`` of ``int`` or names. e.g. If ``[1, 2, 3]`` ->
1590-
try parsing columns 1, 2, 3
1592+
try parsing columns 1, 2, 3
15911593
each as a separate date column.
15921594
15931595
If a column or index cannot be represented as an array of ``datetime``,
@@ -1710,17 +1712,17 @@ def read_table(
17101712
17111713
- ``'error'``, raise an Exception when a bad line is encountered.
17121714
- ``'warn'``, raise a warning when a bad line is encountered and
1713-
skip that line.
1715+
skip that line.
17141716
- ``'skip'``, skip bad lines without raising or warning when they
1715-
are encountered.
1717+
are encountered.
17161718
- Callable, function that will process a single bad line.
17171719
- With ``engine='python'``, function with signature
17181720
``(bad_line: list[str]) -> list[str] | None``.
17191721
``bad_line`` is a list of strings split by the ``sep``.
17201722
If the function returns ``None``, the bad line will be ignored.
17211723
If the function returns a new ``list`` of strings with more elements than
17221724
expected, a ``ParserWarning`` will be emitted while
1723-
dropping extra elements.
1725+
dropping extra elements.
17241726
- With ``engine='pyarrow'``, function with signature
17251727
as described in pyarrow documentation: `invalid_row_handler
17261728
<https://arrow.apache.org/docs/

0 commit comments

Comments
 (0)