Skip to content

Conversation

gcbeltramini
Copy link
Contributor

@gcbeltramini gcbeltramini commented Sep 21, 2017

@@ -115,6 +115,7 @@ Other Enhancements
- :func:`DataFrame.items` and :func:`Series.items` is now present in both Python 2 and 3 and is lazy in all cases (:issue:`13918`, :issue:`17213`)
- :func:`Styler.where` has been implemented. It is as a convenience for :func:`Styler.applymap` and enables simple DataFrame styling on the Jupyter notebook (:issue:`17474`).
- :func:`MultiIndex.is_monotonic_decreasing` has been implemented. Previously returned ``False`` in all cases. (:issue:`16554`)
- :func:`read_excel` raises ``ImportError`` with better message if ``xlrd`` is not installed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reference your PR here.

raise ImportError("pandas requires xlrd >= 0.9.0 for excel "
"support, current version " + xlrd.__VERSION__)
err_msg = "Install xlrd >= 0.9.0 for Excel support"
try:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newline above this one.

@gfyoung gfyoung added Error Reporting Incorrect or improved errors from pandas IO Excel read_excel, to_excel labels Sep 21, 2017
@gfyoung gfyoung changed the title Throw ImportError ERR: Raise ImportError when xlrd is not present Sep 21, 2017
@jreback jreback added this to the 0.21.0 milestone Sep 21, 2017
@jreback
Copy link
Contributor

jreback commented Sep 21, 2017

lgtm. minor comments by @gfyoung
wait for #17619 to merge

@codecov
Copy link

codecov bot commented Sep 21, 2017

Codecov Report

Merging #17613 into master will decrease coverage by 0.02%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #17613      +/-   ##
==========================================
- Coverage   91.19%   91.17%   -0.03%     
==========================================
  Files         163      163              
  Lines       49625    49629       +4     
==========================================
- Hits        45257    45250       -7     
- Misses       4368     4379      +11
Flag Coverage Δ
#multiple 88.96% <66.66%> (-0.01%) ⬇️
#single 40.19% <0%> (-0.07%) ⬇️
Impacted Files Coverage Δ
pandas/io/excel.py 80.37% <66.66%> (-0.18%) ⬇️
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/frame.py 97.77% <0%> (-0.1%) ⬇️

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 fedf922...dee1998. Read the comment docs.

@codecov
Copy link

codecov bot commented Sep 21, 2017

Codecov Report

Merging #17613 into master will decrease coverage by 0.02%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #17613      +/-   ##
==========================================
- Coverage   91.19%   91.17%   -0.03%     
==========================================
  Files         163      163              
  Lines       49625    49629       +4     
==========================================
- Hits        45257    45250       -7     
- Misses       4368     4379      +11
Flag Coverage Δ
#multiple 88.96% <66.66%> (-0.01%) ⬇️
#single 40.19% <0%> (-0.07%) ⬇️
Impacted Files Coverage Δ
pandas/io/excel.py 80.37% <66.66%> (-0.18%) ⬇️
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/frame.py 97.77% <0%> (-0.1%) ⬇️

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 fedf922...dee1998. Read the comment docs.

@jreback jreback closed this in 2352fd6 Sep 22, 2017
alanbato pushed a commit to alanbato/pandas that referenced this pull request Nov 10, 2017
Related issues: pandas-dev#8515, pandas-dev#14673

Author: Guilherme Beltramini <[email protected]>

Closes pandas-dev#17613 from gcbeltramini/xlrd-import and squashes the following commits:

dee1998 [Guilherme Beltramini] Add PR number and blank line
c2759cb [Guilherme Beltramini] Throw ImportError
No-Stream pushed a commit to No-Stream/pandas that referenced this pull request Nov 28, 2017
Related issues: pandas-dev#8515, pandas-dev#14673

Author: Guilherme Beltramini <[email protected]>

Closes pandas-dev#17613 from gcbeltramini/xlrd-import and squashes the following commits:

dee1998 [Guilherme Beltramini] Add PR number and blank line
c2759cb [Guilherme Beltramini] Throw ImportError
@gcbeltramini gcbeltramini deleted the xlrd-import branch March 11, 2018 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas IO Excel read_excel, to_excel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants