-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
DEPR: min_periods=None behavior for Rolling.count #36649
Conversation
pandas/core/window/rolling.py
Outdated
"consistent with other methods in a future version. " | ||
"Specify min_periods=0 instead." | ||
), | ||
DeprecationWarning, |
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.
make this a FutureWarning. I know its loud but i think we need to.
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.
alt we could do this for a version and then change it.
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.
Changed to FutureWarning
This will close #35579 too. You could use
as a test. |
Thanks @phofl. Added that unit test to this PR |
thanks @mroeschke |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
Additionally refactors
count
to take the_apply
path to make this op consistent with the others.