Skip to content

DataFrame stores complex number as object sometimes #1083

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

Closed
tkf opened this issue Apr 19, 2012 · 1 comment
Closed

DataFrame stores complex number as object sometimes #1083

tkf opened this issue Apr 19, 2012 · 1 comment
Milestone

Comments

@tkf
Copy link
Contributor

tkf commented Apr 19, 2012

>>> DataFrame([[0.0 + 1j, 0.0 + 2j]]).values
array([[1j, 2j]], dtype=object)
>>> DataFrame([np.array([1j, 2j])]).values
array([[ 0.+1.j,  0.+2.j]])

I think these two examples should yield the same result.

@wesm
Copy link
Member

wesm commented Apr 20, 2012

pandas support for complex numbers is actually very weak, would be a nice area of improvement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants