-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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: deprecated sheetname
from ExcelFile.parse
#20938
Conversation
* ExcelFile.parse * Made to raise FutureWarning and TypeError when using `sheetname` * ExcelFile._parse_excel * Changed parameter name from `sheetname` to `sheet_name`
Codecov Report
@@ Coverage Diff @@
## master #20938 +/- ##
==========================================
- Coverage 91.81% 91.81% -0.01%
==========================================
Files 153 153
Lines 49471 49479 +8
==========================================
+ Hits 45422 45428 +6
- Misses 4049 4051 +2
Continue to review full report at Codecov.
|
@@ -435,7 +435,16 @@ def parse(self, | |||
docstring for more info on accepted parameters | |||
""" | |||
|
|||
return self._parse_excel(sheetname=sheet_name, |
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.
is fine that you added this here, but you need to remove it from the other section. (which just creates an ExcelFile
and then calls _parse_excel
, just redirect it to call .parse
* removed error/warning raising process from read_excel * changed calling method from ExcelFile._parse_excel to ExcelFile.parse, which calls _parse_excel and raises the same error/warning Related issue: pandas-dev#20920
thanks @deflatSOCO |
sheetname
sheetname
tosheet_name
git diff upstream/master -u -- "*.py" | flake8 --diff