Closed as not planned
Description
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