-
-
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
TST: Add Categorical Series test #33525
Conversation
@@ -90,10 +90,13 @@ def test_min_max_with_nan(self, skipna): | |||
|
|||
@pytest.mark.parametrize("function", ["min", "max"]) | |||
@pytest.mark.parametrize("skipna", [True, False]) | |||
def test_min_max_only_nan(self, function, skipna): | |||
@pytest.mark.parametrize("box_in_series", [True, False]) |
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.
CategoricalIndex, DataFrame col?
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.
There are Series tests elsewhere for Categorical min/max, eg the previous PR that touched the Categorical.min/max implementation added the Series tests in reductions/test_reductions.py: 37526c1, so I would update the tests there instead of here in this file
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.
@jorisvandenbossche Do you mean do that instead of what I'm doing here, or rather that CategoricalIndex and DataFrame cases should be added to test_reductions.py instead of here?
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.
yes the point is to do these in test_reductions.py, adding a similiar missing categorical test there
@@ -90,10 +90,13 @@ def test_min_max_with_nan(self, skipna): | |||
|
|||
@pytest.mark.parametrize("function", ["min", "max"]) | |||
@pytest.mark.parametrize("skipna", [True, False]) | |||
def test_min_max_only_nan(self, function, skipna): | |||
@pytest.mark.parametrize("box_in_series", [True, False]) |
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.
yes the point is to do these in test_reductions.py, adding a similiar missing categorical test there
thanks @dsaxton |
Follow up to #33513
cc @jreback