-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: Clarify interaction of read_csv nrows with other args (#59078) #59084
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
Conversation
855fd8c
to
14d5576
Compare
14d5576
to
83fb858
Compare
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.
Thanks for the PR!
pandas/io/parsers/readers.py
Outdated
* The header row containing column names, | ||
* Rows before the header row, if ``header=1`` or larger, | ||
* Fully commented rows, | ||
* Rows skipped with ``skiprows``, | ||
* Skipped blank lines. |
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 last 3 seem obvious to me, it might be better to remove them since the doc page of read_csv
is quite long already.
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.
Should I just say that nrows
limits the number of rows of the returned dataframe? I can't find any edge case where that is not true.
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.
Sounds good
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.
Ok I've updated that now.
Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen. |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.