-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
BUG: Series.rename() ignores level argument on MultiIndex #5653
Comments
closed via 5dde943 was picking up the wrong docstring |
That was fast :) I thought my issue hadn't been created, but it was already closed. But what about the levels argument? For In [39]: s.rename({1: 'L1', 2: 'L2', 3: 'L3'}, level='inner')
Out[39]:
outer inner
L1 L1 0
L2 1
L3 2
L2 L1 3
L2 4
L3 5
dtype: int64 I think only the inner level should be renamed, not both. |
doesn't take a |
OK, thanks. I'll see if I can track it down. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At least I think this is a bug. #4627 was meant to unify the Series and DataFrame.rename APIs right?
Edit: I guess I'm a bit confused because the docstring seems to indicate that Series.rename() does something a bit different:
The text was updated successfully, but these errors were encountered: