File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ Numeric
64
64
Conversion
65
65
^^^^^^^^^^
66
66
67
- -
67
+ - Improved the warnings for the deprecated methods :meth:`Series.real` and :meth:`Series.imag` (:issue:`27610`)
68
68
-
69
69
-
70
70
Original file line number Diff line number Diff line change @@ -958,7 +958,9 @@ def real(self):
958
958
.. deprecated 0.25.0
959
959
"""
960
960
warnings.warn(
961
- "`real` has be deprecated and will be removed in a " "future verison",
961
+ "`real` is deprecated and will be removed in a future version. "
962
+ "To eliminate this warning for a Series `ser`, use "
963
+ "`np.real(ser.to_numpy())` or `ser.to_numpy().real`.",
962
964
FutureWarning,
963
965
stacklevel=2,
964
966
)
@@ -976,7 +978,9 @@ def imag(self):
976
978
.. deprecated 0.25.0
977
979
"""
978
980
warnings.warn(
979
- "`imag` has be deprecated and will be removed in a " "future verison",
981
+ "`imag` is deprecated and will be removed in a future version. "
982
+ "To eliminate this warning for a Series `ser`, use "
983
+ "`np.imag(ser.to_numpy())` or `ser.to_numpy().imag`.",
980
984
FutureWarning,
981
985
stacklevel=2,
982
986
)
You can’t perform that action at this time.
0 commit comments