Skip to content
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

FEAT: Use pandas rolling apply to implement rows_with_max_lookback #1868

Merged
merged 3 commits into from
Jul 2, 2019

Conversation

emilyreff7
Copy link
Contributor

The offset interval specified in RowsWithMaxLookback should be used in the determination of each row's window, not just the first n rows. For the pandas backend, rolling apply can be used to implement this functionality.

@cpcloud cpcloud changed the title Use pandas rolling apply to implement rows_with_max_lookback FEAT: Use pandas rolling apply to implement rows_with_max_lookback Jul 2, 2019
@cpcloud cpcloud added feature Features or general enhancements pandas The pandas backend window functions Issues or PRs related to window functions labels Jul 2, 2019
@cpcloud cpcloud added this to the Next Feature Release milestone Jul 2, 2019
@cpcloud cpcloud self-requested a review July 2, 2019 19:35
Copy link
Member

@cpcloud cpcloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few small changes needed, but overall looks good.

ibis/expr/tests/test_window_functions.py Outdated Show resolved Hide resolved
ibis/pandas/aggcontext.py Outdated Show resolved Hide resolved
ibis/expr/window.py Outdated Show resolved Hide resolved
@cpcloud
Copy link
Member

cpcloud commented Jul 2, 2019

LGTM! Thanks @emilyreff7!

@cpcloud cpcloud merged commit 3185e9e into ibis-project:master Jul 2, 2019
@emilyreff7 emilyreff7 deleted the maxlookback branch August 15, 2019 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Features or general enhancements pandas The pandas backend window functions Issues or PRs related to window functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants