-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
BUG: pandas.read_excel returns dict type if sheet_name=None #60909
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
Comments
Important - it returns dict of DFs, what is not specified in documentation. It is misleading if excel file has only one sheet. |
Thanks for the report. This is intended. Relabeling as a docs request to maybe make this explicit in the docs. |
I think adding something like "When
I think you're suggesting that pandas should return a DataFrame in the case where |
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
Function
pandas.read_excel
when parametersheet_name
is set toNone
return dict object apart frompandas.core.frame.DataFrame
.Expected Behavior
It should return DF
Installed Versions
pandas==2.2.3
The text was updated successfully, but these errors were encountered: