8000 Convert DataFrame.rename to keyword only; simplify axis validation by WillAyd · Pull Request #29140 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

Convert DataFrame.rename to keyword only; simplify axis validation #29140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Jan 9, 2020
Merged
Prev Previous commit
bound typevar to self
  • Loading branch information
WillAyd committed Jan 9, 2020
commit d5d812cfdf0c3178d8415cea396c69780347a3bf
4 changes: 2 additions & 2 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ def swaplevel(self: FrameOrSeries, i=-2, j=-1, axis=0) -> FrameOrSeries:
# Rename

def rename(
self,
self: FrameOrSeries,
mapper: Optional[Renamer] = None,
*,
index: Optional[Renamer] = None,
Expand All @@ -940,7 +940,7 @@ def rename(
inplace: bool = False,
level: Optional[Level] = None,
errors: str = "ignore",
):
) -> Optional[FrameOrSeries]:
"""
Alter axes input function or functions. Function / dict values must be
unique (1-to-1). Labels not contained in a dict / Series will be left
Expand Down
0