Closed
Description
Series.rename inplace can actually return Self and not None see pandas-dev/pandas#60942
The current typehinting would force it to be None but at runtime this does not seem to stand.
>>> import pandas as pd
>>> pd.Series([1, 2, 3]).rename("A", inplace=True)
0 1
1 2
2 3
Name: A, dtype: int64
Metadata
Metadata
Assignees
Labels
No labels