Skip to content

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

Merged
merged 5 commits into from
Jun 1, 2020

Conversation

miguelmarques1904
Copy link
Contributor

@miguelmarques1904 miguelmarques1904 commented May 19, 2020

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.

@miguelmarques1904
Copy link
Contributor Author

The failing checks are not related to my changes. Any feedback on how I should proceed?

@TomAugspurger
Copy link
Contributor

@miguelmarques1904 fixed in #34258. Merge master and push again.

…rmation about engine compatibility and also the support of pyxlsb engine GH34237.
@miguelmarques1904 miguelmarques1904 changed the title DOC, ENH: Clarify ExcelFile's available engine compatibility with file types in... DOC: Clarify ExcelFile's available engine compatibility with file types in... May 19, 2020
@miguelmarques1904
Copy link
Contributor Author

@TomAugspurger could you review it? The PR only has documentation improvements, fixing #34237.

Copy link
Member

@WillAyd WillAyd left a 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?

@WillAyd WillAyd added the Docs label May 27, 2020
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.
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will do

Copy link
Contributor Author

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.

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.
Copy link
Contributor

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
Copy link
Contributor

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)

Copy link
Contributor

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

sure

@jreback jreback added the IO Excel read_excel, to_excel label May 27, 2020
@jreback jreback added this to the 1.1 milestone Jun 1, 2020
@jreback jreback merged commit 8daf274 into pandas-dev:master Jun 1, 2020
@jreback
Copy link
Contributor

jreback commented Jun 1, 2020

thanks @miguelmarques1904

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

Successfully merging this pull request may close these issues.

BUG:pd.read_excel does not read xlsb
4 participants