Skip to content

Fix testing multiindex dtypes in assert_frame_equal and assert_series_equal #8042

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

Conversation

artemyk
Copy link
Contributor

@artemyk artemyk commented Aug 15, 2014

When using assert_frame_equal or assert_series_equal in the presence of a multiindex, the dtype of the index as a whole is object. Hence, there is no checking that the dtypes of the individual levels match. We now iterate through the levels.

@jreback
Copy link
Contributor

jreback commented Aug 15, 2014

let's see if anything breaks (on the regular tests!)

@artemyk
Copy link
Contributor Author

artemyk commented Aug 15, 2014

Sounds good (at least locally on my end all the tests passed)

jreback added a commit that referenced this pull request Aug 15, 2014
…ex-dtypes

Fix testing multiindex dtypes in assert_frame_equal and assert_series_equal
@jreback jreback merged commit 85ad2b7 into pandas-dev:master Aug 15, 2014
@jreback
Copy link
Contributor

jreback commented Aug 15, 2014

nice addition! thanks!

@artemyk artemyk deleted the fix-assert_frame_equal-multiindex-dtypes branch August 15, 2014 19:24
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.

2 participants