Skip to content

TST: Add test for operations on DataFrame with Interval CategoricalIndex #27443

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 44 commits into from
Jul 23, 2019

Conversation

another-green
Copy link
Contributor

@another-green another-green commented Jul 18, 2019

another-green and others added 30 commits May 24, 2019 18:23
…fset (pandas-dev#26392)

* Add two more parameters to the test

* Add array into the boy and add parameter freq
)

* MAINT: port numpy#13188 for np_datetime simplificaion

Bring numpy changes about emulating the behavior of python's divmod to
pandas.

* cpplint fix

* Add reference numpy change into comment

* fix typo
Co-Authored-By: Joris Van den Bossche <[email protected]>
@jschendel jschendel added Categorical Categorical Data Type DataFrame DataFrame data structure Interval Interval data type Testing pandas testing functions or related to the test suite labels Jul 18, 2019
Copy link
Member

@jschendel jschendel left a comment

Choose a reason for hiding this comment

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

Thanks! I think there's probably a better file to put these tests in but I'm not exactly sure where this should go. cc @jbrockmendel : do you have a preference on where this test should be moved to?

@jbrockmendel
Copy link
Member

Yah these definitely don't belong in tests.indexing. Is there anything DataFrame-specific about them, or could similar tests be written for Series etc? If the latter, then these would go in tests.arithmetic. If they are DataFrame-specific, then tests.frame.test_arithmetic

@another-green another-green force-pushed the test_CategoricalIndex branch from c7c0135 to 7a5dac4 Compare July 20, 2019 22:37
@jreback jreback added this to the 1.0 milestone Jul 23, 2019
@jreback jreback merged commit c2293be into pandas-dev:master Jul 23, 2019
@jreback
Copy link
Contributor

jreback commented Jul 23, 2019

thanks @yanglinlee

quintusdias pushed a commit to quintusdias/pandas_dev that referenced this pull request Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Categorical Categorical Data Type DataFrame DataFrame data structure Interval Interval data type Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using a CategoricalIndex with interval categories as column index breaks operations on a DataFrame