BUG: Incorrect inspect.signature(pd.DataFrame.rename_axis)
- missing inplace
#48730
Closed
3 tasks done
Labels
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
I believe the problem is with the decorator which does not specify
inplace
in extra arguments (alongside withcopy
):pandas/pandas/core/generic.py
Lines 1150 to 1157 in 7d852a9
That
inplace
argument works just fine, as my example above shows.This issue breaks Modin tests which verify the mutual equality of Modin and pandas API for DataFrames.
Expected Behavior
inspect.signature()
should indicate thatinplace
is a supported argument forpd.DataFrame.rename_axis
.Installed Versions
pd.show_versions()
The text was updated successfully, but these errors were encountered: