Open Dr-Irv opened 3 months ago
Describe the bug Index.rename() should return Self
Index.rename()
Self
To Reproduce
import pandas as pd ind = pd.Index([1,2,3], name="foo") ind2 = ind.rename("goo") reveal_type(ind2)
shows that ind2 is unknown
ind2
Please complete the following information:
pandas-stubs
Need to fix rename() in core/indexes/base.pyi
rename()
core/indexes/base.pyi
May I take up this issue?
Assigned to you. go ahead. Need a fix and a test.
Describe the bug
Index.rename()
should returnSelf
To Reproduce
shows that
ind2
is unknownPlease complete the following information:
pandas-stubs
: 2.2.2.240514