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

Method rename

pandas/core/series.py:5111–5120  ·  view source on GitHub ↗
(
        self,
        index: Renamer | Hashable | None = ...,
        *,
        axis: Axis | None = ...,
        copy: bool | lib.NoDefault = ...,
        inplace: Literal[True],
        level: Level | None = ...,
        errors: IgnoreRaise = ...,
    )

Source from the content-addressed store, hash-verified

5109
5110 @overload
5111 def rename(
5112 self,
5113 index: Renamer | Hashable | None = ...,
5114 *,
5115 axis: Axis | None = ...,
5116 copy: bool | lib.NoDefault = ...,
5117 inplace: Literal[True],
5118 level: Level | None = ...,
5119 errors: IgnoreRaise = ...,
5120 ) -> Series | None: ...
5121
5122 @overload
5123 def rename(

Calls 5

_set_nameMethod · 0.95
is_dict_likeFunction · 0.85
_get_axis_numberMethod · 0.80
_renameMethod · 0.45