Skip to content

REF: refactor cumulative op tests from test_analytics #30358

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

Merged
merged 1 commit into from
Dec 20, 2019

Conversation

jbrockmendel
Copy link
Member

The removal of ix highlighted how difficult it is to tell how thorough tests are for some funcs/methods. This is one of several PRs intended to clarify where the tests for X live, and ideally to make that follow a standard pattern across DataFrame/Series/Index subclasses (and EA where relevant)

@jbrockmendel jbrockmendel added Refactor Internal refactoring of code Testing pandas testing functions or related to the test suite labels Dec 19, 2019
Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

I'm on board with this

import pandas.util.testing as tm


class TestDataFrameCumulativeOps:
Copy link
Member

Choose a reason for hiding this comment

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

Not a huge deal but probably don't even need the classes now

Copy link
Member Author

Choose a reason for hiding this comment

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

for whatever reason i still find this style more comfortable, but agreed on the "not a huge deal"

@simonjayhawkins simonjayhawkins added this to the 1.0 milestone Dec 20, 2019
@jreback jreback merged commit a6b047a into pandas-dev:master Dec 20, 2019
@jreback
Copy link
Contributor

jreback commented Dec 20, 2019

thanks. i kind of like the classes as well, useful for organizing, but equally can just make a directory and a no-class structure. prob not worth the churn though.

@jbrockmendel jbrockmendel deleted the ref-tst-cumul branch December 20, 2019 16:17
AlexKirko pushed a commit to AlexKirko/pandas that referenced this pull request Dec 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code 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