-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DEPR update dedeprecation message for np.ptp #28665 #6581 #30401
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
Changes from 1 commit
da3c79a
d89d7f6
d9e955e
08a5f3e
3df0283
add3e23
b28bc3a
86c11c9
5d8d35f
c9ee01a
0610de5
f1e82ab
d8b649e
eeba706
0c19cd3
ab8343a
69d1c0a
8c0bb01
cc66afe
d9e9ac7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -10198,7 +10198,10 @@ def nanptp(values, axis=0, skipna=True): | |||||
nmin = nanops.nanmin(values, axis, skipna) | ||||||
warnings.warn( | ||||||
"Method .ptp is deprecated and will be removed " | ||||||
"in a future version. Use numpy.ptp instead.", | ||||||
"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" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||||||
"eg : np.ptp(pd.Series([1, 2, 3]).to_numpy())", | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||||||
FutureWarning, | ||||||
stacklevel=4, | ||||||
) | ||||||
|
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.
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.
done