Skip to content

Commit

Permalink
update dedeprecation message for np.ptp DEPR pandas-dev#28665 pandas-…
Browse files Browse the repository at this point in the history
…dev#6581 requested changes made
  • Loading branch information
hasnain2808 committed Dec 23, 2019
1 parent da3c79a commit d89d7f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -10199,9 +10199,9 @@ def nanptp(values, axis=0, skipna=True):
warnings.warn(
"Method .ptp is deprecated and will be removed "
"in a future version. Use numpy.ptp instead."
"if you are already using numpy.ptp and still getting this message"
"please call to_numpy() to avoid this message in future calls"
"eg : np.ptp(pd.Series([1, 2, 3]).to_numpy())",
"if you are already using numpy.ptp and still getting this message,"
"please call to_numpy() to avoid this message in future calls."
"For example: np.ptp(pd.Series([1, 2, 3]).to_numpy())",
FutureWarning,
stacklevel=4,
)
Expand Down

0 comments on commit d89d7f6

Please sign in to comment.