-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REGR: value_counts raises with bins #54884
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
Conversation
pandas/tests/test_algos.py
Outdated
# GH#54857 | ||
values = np.array([3, 1, 2, 3, 4, np.nan]) | ||
with tm.assert_produces_warning(FutureWarning, match="deprecated"): | ||
result = pd.value_counts(values, bins=3) |
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.
Can we just test the pd.Series(values).values_counts(bins=3)
version instead to avoid the futurewarning?
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.
Edit: Sorry that was wrong, wrong environment, yes can do
# Conflicts: # doc/source/whatsnew/v2.1.1.rst
…ns) (#54932) Backport PR #54884: REGR: value_counts raises with bins Co-authored-by: Patrick Hoefler <[email protected]>
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.