Skip to content

Commit 69d1c0a

Browse files
committed
Revert "update dedeprecation message for np.ptp DEPR pandas-dev#28665 pandas-dev#6581 requested changes made"
This reverts commit d89d7f6.
1 parent ab8343a commit 69d1c0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/generic.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -10199,9 +10199,9 @@ def nanptp(values, axis=0, skipna=True):
1019910199
warnings.warn(
1020010200
"Method .ptp is deprecated and will be removed "
1020110201
"in a future version. Use numpy.ptp instead."
10202-
"if you are already using numpy.ptp and still getting this message,"
10203-
"please call to_numpy() to avoid this message in future calls."
10204-
"For example: np.ptp(pd.Series([1, 2, 3]).to_numpy())",
10202+
"if you are already using numpy.ptp and still getting this message"
10203+
"please call to_numpy() to avoid this message in future calls"
10204+
"eg : np.ptp(pd.Series([1, 2, 3]).to_numpy())",
1020510205
FutureWarning,
1020610206
stacklevel=4,
1020710207
)

0 commit comments

Comments
 (0)