Skip to content

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

Merged
merged 4 commits into from
Feb 11, 2018
Merged

test_astype portion of #19627 #19637

merged 4 commits into from
Feb 11, 2018

Conversation

jbrockmendel
Copy link
Member

parametrized as suggested

result = idx.astype(object)
assert isinstance(result, Index)
assert result.dtype == object
tm.assert_index_equal(result, expected)
Copy link
Contributor

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)
Copy link
Contributor

Choose a reason for hiding this comment

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

same

@jreback jreback added Testing pandas testing functions or related to the test suite Datetime Datetime data dtype labels Feb 10, 2018
@codecov
Copy link

codecov bot commented Feb 11, 2018

Codecov Report

Merging #19637 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #19637   +/-   ##
=======================================
  Coverage   91.61%   91.61%           
=======================================
  Files         150      150           
  Lines       48807    48807           
=======================================
  Hits        44716    44716           
  Misses       4091     4091
Flag Coverage Δ
#multiple 89.99% <ø> (ø) ⬆️
#single 41.73% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 13bd008...1a833b0. Read the comment docs.

@jreback jreback added this to the 0.23.0 milestone Feb 11, 2018
@jreback jreback merged commit b9b6408 into pandas-dev:master Feb 11, 2018
@jreback
Copy link
Contributor

jreback commented Feb 11, 2018

thanks!

@jbrockmendel jbrockmendel deleted the itests3 branch February 11, 2018 21:36
harisbal pushed a commit to harisbal/pandas that referenced this pull request Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype 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