Skip to content

Conversation

@jbrockmendel
Copy link
Member

No description provided.

getattr(df, op)(s_nan, axis=0)


class TestDataFrameReductions:
Copy link
Member

Choose a reason for hiding this comment

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

There is also a tests/reductions/ directory with a lot of min/max tests. What is the general idea here of what kind of reductions tests should be placed where?

Copy link
Member Author

Choose a reason for hiding this comment

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

tests.reduction is analogous to tests.arithmetic, intended for tests that are shared across classes

Copy link
Contributor

Choose a reason for hiding this comment

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

hmm, you put the series ones in test_reductions.py I think these should be in a similar one?

Copy link
Member Author

Choose a reason for hiding this comment

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

yah considered that, but for frame test_analytics contains most of the reduction tests. i think the thing to do is get non-reduction tests out of there and then rename to test_reduction

Copy link
Contributor

Choose a reason for hiding this comment

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

kk fair, keep in mind

@simonjayhawkins simonjayhawkins added Clean Testing pandas testing functions or related to the test suite labels Apr 6, 2020
@jreback jreback added this to the 1.1 milestone Apr 6, 2020
@jreback jreback merged commit 03dacc1 into pandas-dev:master Apr 6, 2020
@jbrockmendel jbrockmendel deleted the tst-reductions branch April 6, 2020 22:37
jbrockmendel added a commit to jbrockmendel/pandas that referenced this pull request Apr 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Clean Testing pandas testing functions or related to the test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants