Skip to content

Commit 85c1a4f

Browse files
committed
refactor: replace @appender with hardcoded docstrings for read_csv and read_table
1 parent 41e4b6b commit 85c1a4f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

pandas/io/parsers/readers.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ def read_csv(
980980
Depending on whether ``na_values`` is passed in, the behavior is as follows:
981981
982982
* If ``keep_default_na`` is ``True``, and ``na_values``
983-
are specified, ``na_values``
983+
are specified, ``na_values``
984984
is appended to the default ``NaN`` values used for parsing.
985985
* If ``keep_default_na`` is ``True``, and ``na_values`` are not specified, only
986986
the default ``NaN`` values are used for parsing.
@@ -1003,8 +1003,8 @@ def read_csv(
10031003
10041004
* ``bool``. If ``True`` -> try parsing the index.
10051005
* ``None``. Behaves like ``True`` if ``date_format`` is specified.
1006-
* ``list`` of ``int`` or
1007-
names. e.g. If ``[1, 2, 3]`` -> try parsing columns 1, 2, 3
1006+
* ``list`` of ``int`` or names.
1007+
e.g. If ``[1, 2, 3]`` -> try parsing columns 1, 2, 3
10081008
each as a separate date column.
10091009
10101010
If a column or index cannot be represented as an array of ``datetime``,
@@ -1089,9 +1089,9 @@ def read_csv(
10891089
in ``quotechar``, ``delimiter``,
10901090
or ``lineterminator``.
10911091
doublequote : bool, default True
1092-
When ``quotechar`` is specified and ``quoting`` is not ``QUOTE_NONE``, indicate
1093-
whether or not to interpret two consecutive ``quotechar`` elements INSIDE a
1094-
field as a single ``quotechar`` element.
1092+
When ``quotechar`` is specified and ``quoting`` is not ``QUOTE_NONE``, indicate
1093+
whether or not to interpret two consecutive ``quotechar`` elements INSIDE a
1094+
field as a single ``quotechar`` element.
10951095
escapechar : str (length 1), optional
10961096
Character used to escape other characters.
10971097
comment : str (length 1), optional
@@ -1126,22 +1126,22 @@ def read_csv(
11261126
11271127
- ``'error'``, raise an Exception when a bad line is encountered.
11281128
- ``'warn'``, raise a warning when a bad line is
1129-
encountered and skip that line.
1129+
encountered and skip that line.
11301130
- ``'skip'``, skip bad lines without raising or warning when
1131-
they are encountered.
1131+
they are encountered.
11321132
- Callable, function that will process a single bad line.
11331133
- With ``engine='python'``, function with signature
11341134
``(bad_line: list[str]) -> list[str] | None``.
11351135
``bad_line`` is a list of strings split by the ``sep``.
11361136
If the function returns ``None``, the bad line will be ignored.
11371137
If the function returns a new ``list`` of strings with
1138-
more elements than
1138+
more elements than
11391139
expected, a ``ParserWarning`` will be emitted while
1140-
dropping extra elements.
1140+
dropping extra elements.
11411141
- With ``engine='pyarrow'``, function with signature
11421142
as described in pyarrow documentation: `invalid_row_handler
11431143
<https://arrow.apache.org/docs/python
1144-
/generated/pyarrow.csv.ParseOptions.html
1144+
/generated/pyarrow.csv.ParseOptions.html
11451145
#pyarrow.csv.ParseOptions.invalid_row_handler>`_.
11461146
11471147
.. versionadded:: 1.3.0

0 commit comments

Comments
 (0)