Skip to content
Prev Previous commit
Next Next commit
minor fixups
  • Loading branch information
WillAyd committed Jan 9, 2020
commit af0b7c5f45781cd31930b7809ce10400a9938ba3
2 changes: 1 addition & 1 deletion pandas/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
Axes = Collection

# For functions like rename that convert one label to another
Renamer = Union[Mapping[Hashable, Any], Callable[[Hashable], Hashable]]
Renamer = Union[Mapping[Label, Any], Callable[[Label], Label]]

# to maintain type information across generic functions and parametrization
T = TypeVar("T")
2 changes: 1 addition & 1 deletion pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -3916,7 +3916,7 @@ def rename(

Parameters
----------
axis : int or str
axis : {0 or "index"}
Unused. Accepted for compatability with DataFrame method only.
index : scalar, hashable sequence, dict-like or function, optional
Functions or dict-like are transformations to apply to
Expand Down