-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Support custom BaseIndexers in groupby.rolling #35647
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
BUG: Support custom BaseIndexers in groupby.rolling #35647
Conversation
@@ -265,7 +265,8 @@ def __init__( | |||
index_array: Optional[np.ndarray], | |||
window_size: int, | |||
groupby_indicies: Dict, | |||
rolling_indexer: Union[Type[FixedWindowIndexer], Type[VariableWindowIndexer]], | |||
rolling_indexer: Type[BaseIndexer], | |||
indexer_kwargs: Optional[Dict], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you need this? (indexer_kwargs
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In GroupbyRollingIndex
I am instantiating th user's custom indexer as I know the index_array
from each group,
so I need to do:
UsersIndexer(index_array, window_size, **indexer_kwargs)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kk
thanks @mroeschke |
@meeseeksdev backport 1.1.x |
…ng (#35699) Co-authored-by: Matthew Roeschke <[email protected]>
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff