-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
DEPR: Deprecate parse_cols in read_excel #17774
DEPR: Deprecate parse_cols in read_excel #17774
Conversation
Will now use "usecols" just like in read_csv. xref pandas-devgh-4988.
Codecov Report
@@ Coverage Diff @@
## master #17774 +/- ##
==========================================
- Coverage 91.26% 91.24% -0.02%
==========================================
Files 163 163
Lines 49872 49873 +1
==========================================
- Hits 45514 45506 -8
- Misses 4358 4367 +9
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #17774 +/- ##
==========================================
- Coverage 91.26% 91.24% -0.02%
==========================================
Files 163 163
Lines 49872 49873 +1
==========================================
- Hits 45514 45506 -8
- Misses 4358 4367 +9
Continue to review full report at Codecov.
|
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.
all looks good. I would internally change the kwarg though.
@@ -226,7 +231,7 @@ def read_excel(io, sheet_name=0, header=0, skiprows=None, skip_footer=0, | |||
|
|||
return io._parse_excel( | |||
sheetname=sheet_name, header=header, skiprows=skiprows, names=names, | |||
index_col=index_col, parse_cols=parse_cols, parse_dates=parse_dates, |
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 would change the internal kwargs all the way down to usecols
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.
Ah, good point. Will do.
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.
BTW, this PR is just addressing #4988, not closing it?
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.
how so?
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.
Well because the conversation arose from #4988, so at the very least we're addressing it. However, I wasn't sure if we were closing the issue after this PR.
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 don't really remember this, can you give me a 1-liner what the issue is? (I thought it was just a rename / deprecation)
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 issue was regarding "inconsistent naming between read_excel
and read_csv
" That was really it. I didn't see anything naming inconsistencies besides this one.
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 to close that issue (I changed at top)
looks fine. just run the excel tests locally and see if you are getting any deprecation warnings (and then suppress or better yet change). also on the docs you may need to change some older code to a code-block (and may need to fix text in the docs in any event). |
thanks @gfyoung ! |
Will now use "usecols" just like in read_csv.
closes #4988.