-
Notifications
You must be signed in to change notification settings - Fork 160
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
[ENH] Add cummin()
and cummax()
functions for cumulative min/max calculation
#3288
Conversation
Thanks @samukweku, I guess this could be easily templated to support both |
Look at this example. In the current implementation >>> from datatable import dt
>>> DT = dt.Frame([-1, None, 1])
>>> DT[:, dt.f.C0.cummax()]
| C0
| int64
-- + -----
0 | -1
1 | 0
2 | 1
[3 rows x 1 column] Once we fix the issues I've mentioned in the comments above the output will be | C0
| int64
-- + -----
0 | -1
1 | -1
2 | 1
[3 rows x 1 column] and that will be more consistent with the regular |
Btw, I've just pushed a fix for the sphinx build configuration. You should merge |
Co-authored-by: oleksiyskononenko <35204136+oleksiyskononenko@users.noreply.github.com>
In sphinx config set language to `en` to silence the warning: ``` WARNING: Invalid configuration value found: 'language = None'. Update your configuration to a valid langauge code. Falling back to 'en' (English). ```
thanks for the hint ... I'll give it a shot |
@samukweku the building error is not related to the changes on this PR, just some glitch with the jenkins filesystem:
So just continue what you're doing, if the error persists, I will look into it. |
@samukweku Let me know if you have any questions on the templated implementation of |
cummin()
and cummax()
functions for cumulative min/max calculation
thanks @oleksiyskononenko , I understand the template implementation. I'm sure I'll come back to it several times to study it more. |
@oleksiyskononenko kindly have a look, when you can; I have updated the docs for cumin and added tests for |
WIP for #3279