-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
DOC: Replace @appender with inlined docstrings in pandas/io/parsers/readers.py #62713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
huhu-dsy
commented
Oct 16, 2025
- contributes to DOC: Replace @appender, @substitution, @doc with inlined docstrings https://github.com/pandas-- dev/pandas/issues/62437
- [Tests added and passed]if fixing a bug or adding a new feature
- All [code checks passed]
- Added [type annotations]to new arguments/methods/functions.
- Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.
Column(s) to use as row label(s), denoted either by column labels or column | ||
indices. If a sequence of labels or indices is given, | ||
:class:`~pandas.MultiIndex` | ||
will be formed for the row labels. | ||
Note: ``index_col=False`` can be used to force pandas to *not* use the first | ||
column as the index, e.g., when you have a malformed file with delimiters at | ||
the end of each line. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The indentation of this section seems different than the others
.. versionadded:: 1.3.0 | ||
.. versionadded:: 1.4.0 | ||
Callable | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. versionadded:: 1.3.0 | |
.. versionadded:: 1.4.0 | |
Callable |
This section looked odd, but these are old versions so we can remove
Column(s) to use as row label(s), denoted either by column labels or column | ||
indices. If a sequence of labels or indices is given, :class:`~pandas.MultiIndex` | ||
will be formed for the row labels. | ||
Note: ``index_col=False`` can be used to force pandas to *not* use the first | ||
column as the index, e.g., when you have a malformed file with delimiters at | ||
the end of each line. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same indentation comment here
.. versionadded:: 1.3.0 | ||
.. versionadded:: 1.4.0 | ||
Callable | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. versionadded:: 1.3.0 | |
.. versionadded:: 1.4.0 | |
Callable |
|
||
|
||
@Appender( | ||
_doc_read_csv_and_table.format( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If _doc_read_csv_and_table
is not used anywhere else, can you remove it?