-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
improve warnings for Series.{real,imag} #27651
improve warnings for Series.{real,imag} #27651
Conversation
pandas/core/series.py
Outdated
"`real` has be deprecated and will be removed in a future version", | ||
"`real` has be deprecated and will be removed in a future " | ||
"version. To eliminate this warning for a Series `ser`, use " | ||
"`np.real(ser.to_array())` or `ser.to_array().real`.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the to_array
be a to_numpy
?
pandas/core/series.py
Outdated
@@ -955,7 +955,9 @@ def real(self): | |||
.. deprecated:: 0.25.0 | |||
""" | |||
warnings.warn( | |||
"`real` has be deprecated and will be removed in a future version", | |||
"`real` has be deprecated and will be removed in a future " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"`real` has be deprecated and will be removed in a future " | |
"`real` is deprecated and will be removed in a future " |
fixing an existing typo at once
pandas/core/series.py
Outdated
@@ -973,7 +975,9 @@ def imag(self): | |||
.. deprecated:: 0.25.0 | |||
""" | |||
warnings.warn( | |||
"`imag` has be deprecated and will be removed in a future version", | |||
"`imag` has be deprecated and will be removed in a future " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"`imag` has be deprecated and will be removed in a future " | |
"`imag` is deprecated and will be removed in a future " |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon! If these instruction are inaccurate, feel free to suggest an improvement. |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff