Skip to content
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

BUG: .astype of Float64Index #12881

Closed
jreback opened this issue Apr 12, 2016 · 1 comment
Closed

BUG: .astype of Float64Index #12881

jreback opened this issue Apr 12, 2016 · 1 comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Apr 12, 2016

xref #12866

data = Index([u'0', u'1', u'2'], dtype='object')
data.astype('float64').astype('int64')
TypeError: Setting <class 'pandas.indexes.numeric.Float64Index'> dtype to anything other than float64 or object is not supported

this should work

@jreback jreback added Bug Dtype Conversions Unexpected or buggy dtype conversions Difficulty Intermediate labels Apr 12, 2016
@jreback jreback added this to the 0.18.1 milestone Apr 12, 2016
@jreback
Copy link
Contributor Author

jreback commented Apr 12, 2016

cc @Komnomnomnom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant