Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ENH: make Series.ptp() handle missing values #11163
Currently (in master),
It is simple to write
If there is any agreement as to whether
Extending the idea, it might be useful to have both
For this example DataFrame...
...I would expect the following behaviour:
Again, if there is any consensus from the community on whether these additional methods should be added, I'd be happy to work on the pull request.
Certainly OK to fix the NaN issue in
But, I am a bit more hesitant on the second part, adding it to DataFrame. Some reasons: 1) we already have many methods, and personally I don't think