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

Complex64 implicitly converted to Complex128 #10952

Closed
sklam opened this issue Aug 31, 2015 · 1 comment
Closed

Complex64 implicitly converted to Complex128 #10952

sklam opened this issue Aug 31, 2015 · 1 comment
Labels
Complex Complex Numbers Dtype Conversions Unexpected or buggy dtype conversions
Milestone

Comments

@sklam
Copy link
Contributor

sklam commented Aug 31, 2015

NumPy array of complex64 is implicitly converted to complex128 when used as data for DataFrame:

>>> a=np.random.randn(10).astype(np.complex64)
>>> a.dtype
dtype('complex64')
>>> pd.DataFrame({'a': a}).a.dtype
dtype('complex128')
>>> 

The problem does not affect Series:

In [7]: Series(a).dtype
Out[7]: dtype('complex64')
@jreback jreback added Dtype Conversions Unexpected or buggy dtype conversions Complex Complex Numbers Difficulty Intermediate labels Aug 31, 2015
@jreback jreback added this to the Next Major Release milestone Aug 31, 2015
@jreback jreback modified the milestones: 0.17.0, Next Major Release Sep 2, 2015
@jreback
Copy link
Contributor

jreback commented Sep 3, 2015

closed by #10975

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

No branches or pull requests

2 participants