8000 TYP: return values in core/*.py by twoertwein · Pull Request #47587 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

TYP: return values in core/*.py #47587

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 14 commits into from
Jul 6, 2022
Prev Previous commit
Next Next commit
fix rename_axis
  • Loading branch information
twoertwein committed Jul 4, 2022
commit ddaac7421024865eb5673de6ce3dd6264ae2aa2e
3 changes: 2 additions & 1 deletion pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ def rename_axis(
) -> NDFrameT | None:
...

@rewrite_axis_style_signature("mapper", [("copy", True), ("inplace", False)])
@rewrite_axis_style_signature("mapper", [("copy", True)])
@deprecate_nonkeyword_arguments(version=None, allowed_args=["self", "mapper"])
def rename_axis(
self: NDFrameT,
Expand Down Expand Up @@ -1209,6 +1209,7 @@ class name
cat 4 0
monkey 2 2
"""
kwargs["inplace"] = inplace
axes, kwargs = self._construct_axes_from_arguments(
(), kwargs, sentinel=lib.no_default
)
Expand Down
0