Skip to content

BUG: inplace ignored for empty DataFrame by DataFrame.interpolate #53199

Closed
@twoertwein

Description

@twoertwein

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

pd.DataFrame().interpolate(method="linear", inplace=True)  # should return None

Issue Description

The above returns the empty DataFrame.

xref pandas-dev/pandas-stubs#691

Expected Behavior

Returns None

Installed Versions

Replace this line with the output of pd.show_versions()

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDataFrameDataFrame data structureMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolateinplaceRelating to inplace parameter or equivalent

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions