-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Add nrows parameter to pandas.read_excel() #18507
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
LGTM; Travis build issues appear to be related to quote issues and not test failures. |
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.
LGTM
@alysivji : Thanks for the ping. A couple of points:
I'm totally onboard for adding |
Codecov Report
@@ Coverage Diff @@
## master #18507 +/- ##
==========================================
- Coverage 91.6% 91.56% -0.05%
==========================================
Files 153 153
Lines 51272 51273 +1
==========================================
- Hits 46969 46947 -22
- Misses 4303 4326 +23
Continue to review full report at Codecov.
|
pandas/io/excel.py
Outdated
input argument, the Excel cell content, and return the transformed | ||
content. | ||
parse_cols : int or list, default None | ||
.. deprecated:: 0.21.0 |
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.
I think you need a blank line before the deprecated
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.
This has been fixed, also added a blank line in the sheetname
section. Thanks.
I am ok with the re-aranging of parameters in this PR. pls rebase. |
…atch function signature
@jreback How does this look? Any changes needed? |
thanks! |
Hi folks, Reading the Whats New for Pandas 0.22.0 as well as checking the pandas.read_excel page I note that nrows param is not yet available for read_excel(..). Is there any indication as to when as well as what version of Pandas it will be added? Thanks in advance to the people involved in adding this functionality, keep up the great work! |
@Sabr3tooth Pandas 0.22 had a single API breaking change. This enhancement will be in 0.23 based on the whatsnew in master |
Thanks, looking forward to seeing it in Pandas! |
git diff upstream/master -u -- "*.py" | flake8 --diff
I was working on this a few months back, but got busy. Apologies. I'm free until January so thought I'd pick this back up.
Changes
nrows
parameter (with tests)pandas.read_csv()
signature (across entirepandas/io/excel.py
file)nrows
param)I think that covered all the outstanding issues from the previous (closed) PR. Please let me know if you need anything changed or modified.