-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Complex number operation on DataFrame #10921
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
Comments
Same issue is inherited by xray. Where I first hit the issue. |
real/image are defined on a Series |
|
you can also use
Further you have to make sure that you have the appropriate dtypes (e.g. complex) or these don't make sense, so generally applying to an entire frame is not what you want, and you should use |
Good point. |
Thanks for pointing the |
@jreback I see your point now about why applying real/imag does not make sense for DataFrame. |
Hello,
Would it be possible to add complex function operation on DataFrame ?
Function like np.sin, np.abs works properly on Pandas DataFrame containing complex numbers and
returns a DataFrame (as expected).
However, np.real, np.imag, np.angle operation return an numpy.ndarray array instead of DataFrame...
The text was updated successfully, but these errors were encountered: