Skip to content

BUG: pandas.read_excel returns dict type if sheet_name=None #60909

Closed
@Filip-Regenczuk

Description

@Filip-Regenczuk

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

import pandas as pd
df = pd.read_excel("test_data/test.xlsx", sheet_name=None)
print(type(df))

Issue Description

Function pandas.read_excel when parameter sheet_name is set to None return dict object apart from pandas.core.frame.DataFrame.

Expected Behavior

It should return DF

Installed Versions

pandas==2.2.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions