MCPcopy
hub / github.com/pandas-dev/pandas / rename

Method rename

pandas/core/indexes/base.py:2057–2057  ·  view source on GitHub ↗
(self, name, *, inplace: Literal[False] = ...)

Source from the content-addressed store, hash-verified

2055
2056 @overload
2057 def rename(self, name, *, inplace: Literal[False] = ...) -> Self: ...
2058
2059 @overload
2060 def rename(self, name, *, inplace: Literal[True]) -> None: ...

Callers 15

test_rename_axis_noneMethod · 0.95
test_rename_axis_noneMethod · 0.95
test_identicalMethod · 0.95
test_identicalMethod · 0.95
test_differenceMethod · 0.95
test_identicalMethod · 0.95
get_new_columnsMethod · 0.45
new_indexMethod · 0.45
_unionMethod · 0.45

Calls 1

set_namesMethod · 0.95

Tested by 7

test_rename_axis_noneMethod · 0.76
test_rename_axis_noneMethod · 0.76
test_identicalMethod · 0.76
test_identicalMethod · 0.76
test_differenceMethod · 0.76
test_identicalMethod · 0.76