-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: update wording about when xlrd engine can be used #38456
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
Merged
+56
−28
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e107c1e
adjust docs about xlrd changes to match my intentions
cjw296 a70795d
undo edits under discussion
jorisvandenbossche d7d8fd3
fixup
jorisvandenbossche 51706b2
Add warnings that using xlrd to open xlsx files is no longer supported.
cjw296 f77ca98
add warning to io.rst as well
jorisvandenbossche 41c14cf
edits
jorisvandenbossche 4bc6a08
edit
jorisvandenbossche 47e26b5
fix sphinx warning
jorisvandenbossche File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,16 +15,17 @@ including other versions of pandas. | |
The `xlrd <https://xlrd.readthedocs.io/en/latest/>`_ package is now only for reading | ||
old-style ``.xls`` files. | ||
|
||
Previously, the default argument ``engine=None`` to ``pd.read_excel`` | ||
would result in using the ``xlrd`` engine in many cases. If | ||
`openpyxl <https://openpyxl.readthedocs.io/en/stable/>`_ is installed, | ||
Previously, the default argument ``engine=None`` to :func:`~pandas.read_excel` | ||
would result in using the ``xlrd`` engine in many cases, also for new | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "including" might be better than "also for" here. |
||
Excel 2007+ (``.xlsx``) files. | ||
If `openpyxl <https://openpyxl.readthedocs.io/en/stable/>`_ is installed, | ||
many of these cases will now default to using the ``openpyxl`` engine. | ||
See the :func:`read_excel` documentation for more details. | ||
|
||
.. warning:: | ||
|
||
Please do not report issues when using ``xlrd`` to read ``.xlsx`` files. | ||
This is not supported, switch to using ``openpyxl`` instead. | ||
Thus, it is strongly encouraged to install ``openpyxl`` to read Excel 2007+ | ||
(``.xlsx``) files. | ||
Please do not report issues when using ``xlrd`` to read ``.xlsx`` files. | ||
This is no longer supported, switch to using ``openpyxl`` instead. | ||
|
||
Attempting to use the the ``xlwt`` engine will raise a ``FutureWarning`` | ||
unless the option :attr:`io.excel.xls.writer` is set to ``"xlwt"``. | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 prefer these two lines to be further up, around 2938, and in their own paragraph. I mean, I'd prefer them to be bright red and bold, maybe flashing too, but I doubt you'd agree to that ;-)