-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: make Series.ptp ignore NaN values (GH11163) #11172
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
Conversation
actually what I would is define this using |
Ah OK - no problem, I should be able to take a look at this and update in the next week or so. |
@@ -487,6 +487,8 @@ Other enhancements | |||
|
|||
- ``pd.read_csv`` is now able to infer compression type for files read from AWS S3 storage (:issue:`11070`, :issue:`11074`). | |||
|
|||
- ``Series.ptp`` will now ignore missing values by default (:issue:`11163`) |
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.
move to 0.17.1
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.
put in the API section as we are going to change the signature a bit
can you update |
Apologies - the past few weeks have been much busier than I'd anticipated. I hope to get back to update this very soon. |
no prob. |
@ajcr progress? |
@ajcr pls update when you can |
@jreback: my apologies for the delay once again, I've just got back and was looking at this again just now. As I understand it, I need to do the following:
The last part I'm not quite sure how to do best, because NDFrame is a parent class of both Series and DataFrame. Are there any other methods from NDFrame that are restricted to one or the other object in this way? |
you don't really need to do step 1, simply define it in if you look at the end of |
@jreback: made some changes and things are now green - let me know if you'd like me to improve anything or make any other changes. |
ENH: make Series.ptp ignore NaN values (GH11163)
thanks! |
No problem (sorry it took a while) - thanks for your guidance! |
Closes GH11163.
Series.ptp
will now ignore missing values when calculating the peak to peak difference.