Skip to content

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

# 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