-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Feature request: first & last for rolling() #33155
Comments
Link to SO question, which provides some input data, as requested by commentators.
|
'take' |
I will take this issue |
you will? |
is this still a relevant feature? @soccerboys2008 |
It's a good feature for me to get the first/last non-nan element in specific rolling window (with |
What would "first" and "last" mean in the context of a rolling window? i.e. would first refer to the most recent element (it being the most significant element in a way) or the oldest element (going by the index, oldest is first)? Perhaps, to keep it consistent with Groupby, it should be the latter. @mroeschke |
In my context, the latter (going by the index, oldest is first). |
take |
Code Sample, a copy-pastable example if possible
Please, could 'first' and 'last' be made available for rolling window?
Thanks for your support!
Bests,
The text was updated successfully, but these errors were encountered: