Skip to content

ENH: To add an inplace option for pd.DataFrame.reindex #60199

Closed as not planned
Closed as not planned
@blue-cat-whale

Description

@blue-cat-whale

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

Problem Description

I wish I could update the index of a dataframe inplace.

Feature Description

Functions pd.DataFrame.set_index() and pd.DataFrame.reset_index() both have an option of inplace=True. I hope function pd.DataFrame.reindex() add it as well. This might lead to adding another option of drop=True.

Alternative Solutions

N/A

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions