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

Added special case for using rolling operations with date filters/dimensions #165

Merged
merged 1 commit into from Jul 10, 2018

Conversation

twheys
Copy link
Contributor

@twheys twheys commented Jul 10, 2018

Added special case for using rolling operation with date dimension and date filter in order to adjust the filter then truncate the resulting data frame

from fireant.slicer.operations import RollingOperation


def adjust_daterange_filter_for_rolling_window(dimensions, operations, filters):
Copy link
Contributor

Choose a reason for hiding this comment

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

These functions could do with comments explaining why the date range has to be adjusted

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok will do. Just hope I can find a better solution for this at some point because right now we need to jump through a lot of hoops to figure it out.

@coveralls
Copy link

coveralls commented Jul 10, 2018

Coverage Status

Coverage decreased (-1.04%) to 92.552% when pulling 9807d07 on rolling_op_special_cases into 1582491 on fireant1.0.

…d date filter in order to adjust the filter then truncate the resulting data frame
@twheys twheys merged commit 723d816 into fireant1.0 Jul 10, 2018
@twheys twheys deleted the rolling_op_special_cases branch July 10, 2018 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants