-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: Clarify ExcelFile's available engine compatibility with file types in... #34261
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
DOC: Clarify ExcelFile's available engine compatibility with file types in... #34261
Conversation
The failing checks are not related to my changes. Any feedback on how I should proceed? |
@miguelmarques1904 fixed in #34258. Merge master and push again. |
69b2ad6
to
6cbb84b
Compare
…rmation about engine compatibility and also the support of pyxlsb engine GH34237.
6cbb84b
to
e0fc50d
Compare
@TomAugspurger could you review it? The PR only has documentation improvements, fixing #34237. |
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.
lgtm. Last error was unrelated - can you merge master one more time just to be safe?
pandas/io/excel/_base.py
Outdated
Acceptable values are None, "xlrd", "openpyxl" or "odf". | ||
Acceptable values are None, "xlrd", "openpyxl", "odf", or "pyxlsb". | ||
Engine compatibility: | ||
"xlrd" supports most old/new Excel file formats. |
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 think you can use bullets here (e.g. -
) to more doc-string clarify
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.
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.
I think it's clearer now. Thank you for the suggestion. Same for the changes proposed below.
pandas/io/excel/_base.py
Outdated
Note that ``odf`` reads tables out of OpenDocument formatted files. | ||
Acceptable values are None, ``xlrd``, ``openpyxl``, ``odf``, or ``pyxlsb``. | ||
Engine compatibility: | ||
``xlrd`` supports most old/new Excel file formats. |
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.
same
@@ -816,7 +826,8 @@ def __init__(self, io, engine=None): | |||
raise ValueError(f"Unknown engine: {engine}") | |||
|
|||
self.engine = engine | |||
# could be a str, ExcelFile, Book, etc. | |||
|
|||
# Could be a str, ExcelFile, Book, etc. | |||
self.io = io |
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.
can we type this? (not sure its easy)
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.
Out of scope for this PR I think.
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.
sure
thanks @miguelmarques1904 |
information about engine compatibility and also reflect the support of the pyxlsb engine. GH34237.
DOC: I edited the available ExcelFile's docstring to add information about the recent pyxlsb engine. I also added some compatibility information between the available engines and file types.
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff