Skip to content
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

Merged
merged 2 commits into from May 4, 2018

Conversation

deflatSOCO
Copy link
Contributor

  • ExcelFile.parse
    • Made to raise FutureWarning and TypeError when using sheetname
  • ExcelFile._parse_excel
    • Changed parameter name from sheetname to sheet_name

* ExcelFile.parse
  * Made to raise FutureWarning and TypeError when using `sheetname`
* ExcelFile._parse_excel
  * Changed parameter name from `sheetname` to `sheet_name`
@codecov
Copy link

codecov bot commented May 3, 2018

Codecov Report

Merging #20938 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            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
Flag Coverage Δ
#multiple 90.2% <ø> (-0.01%) ⬇️
#single 41.85% <ø> (ø) ⬆️
Impacted Files Coverage Δ
pandas/util/testing.py 84.38% <0%> (-0.21%) ⬇️
pandas/core/reshape/merge.py 94.25% <0%> (ø) ⬆️
pandas/core/algorithms.py 94.5% <0%> (+0.01%) ⬆️
pandas/core/indexes/datetimes.py 95.76% <0%> (+0.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce4ab82...1b893df. Read the comment docs.

@@ -435,7 +435,16 @@ def parse(self,
docstring for more info on accepted parameters
"""

return self._parse_excel(sheetname=sheet_name,
Copy link
Contributor

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

@jreback jreback added IO Excel read_excel, to_excel Deprecate Functionality to remove in pandas labels May 3, 2018
* 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
@jreback jreback added this to the 0.23.0 milestone May 4, 2018
@jreback jreback merged commit ec4609e into pandas-dev:master May 4, 2018
@jreback
Copy link
Contributor

jreback commented May 4, 2018

thanks @deflatSOCO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas IO Excel read_excel, to_excel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ExcelFile.parse() and pd.read_xlsx() have different behavior for "sheetname" argument
2 participants