-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Series.rename_axis(None)
not accepted
#1042
Comments
Hey @dpoznik , Thanks for the report! What you are seeing is correct, there exists no overload for passing None (although it is allowed by the pandas-stubs/pandas-stubs/core/series.pyi Lines 2067 to 2087 in 779aab6
|
I don't think an overload is needed. Just need to add I also think the asterisk needs to be moved to after A change to allow PR with tests welcome. |
Cool, thanks for confirming. I'd be happy to submit a PR with all of the above at some point in the next few days. Could you assign the issue to me to ensure against duplicated effort? |
You got it @dpoznik ! Looking forward! |
Series.rename_axis(None)
not accepted
Describe the bug
To remove the name of the index of a
Series
, one may callSeries.rename_axis(None)
, howevermypy
does not recognizeNone
as a valid argument.To Reproduce
This code:
elicits the expected output when run:
but
mypy
complains with:Please complete the following information:
The text was updated successfully, but these errors were encountered: