Skip to content
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

Merged
merged 4 commits into from
Apr 21, 2020
Merged

TST: Add Categorical Series test #33525

merged 4 commits into from
Apr 21, 2020

Conversation

dsaxton
Copy link
Member

@dsaxton dsaxton commented Apr 13, 2020

Follow up to #33513

cc @jreback

@@ -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])
Copy link
Member

Choose a reason for hiding this comment

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

CategoricalIndex, DataFrame col?

Copy link
Member

@jorisvandenbossche jorisvandenbossche Apr 13, 2020

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

Copy link
Member Author

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?

Copy link
Contributor

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

@alimcmaster1 alimcmaster1 added the Testing pandas testing functions or related to the test suite label Apr 14, 2020
@jreback jreback added this to the 1.1 milestone Apr 17, 2020
@@ -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])
Copy link
Contributor

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

@jreback jreback merged commit 8282ee2 into pandas-dev:master Apr 21, 2020
@jreback
Copy link
Contributor

jreback commented Apr 21, 2020

thanks @dsaxton

@dsaxton dsaxton deleted the cat-tests branch April 21, 2020 18:32
rhshadrach pushed a commit to rhshadrach/pandas that referenced this pull request May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants