Skip to content

Conversation

jbrockmendel
Copy link
Member

Haven't added tests, hoping a newcomer will get this across the finish line.

@mroeschke mroeschke added the Error Reporting Incorrect or improved errors from pandas label Sep 8, 2025
@mroeschke mroeschke added this to the 3.0 milestone Sep 8, 2025
@@ -11430,6 +11430,7 @@ def corr(
dogs 1.0 NaN
cats NaN 1.0
""" # noqa: E501
validate_bool_kwarg(numeric_only, "numeric_only")
Copy link
Member

Choose a reason for hiding this comment

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

I think none_allowed=False needs to be passed to all these calls (and none_allowed=True shouldn't probably be the default for this function)

@mroeschke mroeschke removed this from the 3.0 milestone Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERR: numeric_only in reduction operations should disallow passing non-bools
2 participants