You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
>>>importpandasaspd>>>pd.Series([1, 2, 3]).rename("A", inplace=True)
011223Name: A, dtype: int64
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: