-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
test_astype portion of #19627 #19637
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
Conversation
result = idx.astype(object) | ||
assert isinstance(result, Index) | ||
assert result.dtype == object | ||
tm.assert_index_equal(result, expected) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don’t need all of these other comparisons as the assert_index_equal does all this
result = idx.astype(object) | ||
assert isinstance(result, Index) | ||
assert result.dtype == object | ||
tm.assert_index_equal(result, expected) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
Codecov Report
@@ Coverage Diff @@
## master #19637 +/- ##
=======================================
Coverage 91.61% 91.61%
=======================================
Files 150 150
Lines 48807 48807
=======================================
Hits 44716 44716
Misses 4091 4091
Continue to review full report at Codecov.
|
thanks! |
parametrized as suggested