-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
Series is missing real/imag attributes #4819
Comments
you can access like below These are easy to do (just a delegated property), but is this a typical access pattern? should we make them methods? what do you do with the complex numbers?
|
I know that - actually, this is what I'm using as a workaround in 0.12dev. Is it intentional that the 'new' Series class does not contain these attrs anymore? |
nope...they are apparently properties on numpy ararys; we didn't have any tests that use these so they weren't 'missing'. I'll add them..pretty easy |
@Thisch ok...all fixed up...updated to current master and give a try..thanks for the report |
Thank you. Sry that I have not answered all your questions in your first reply. Atm I use complex numbers mainly for working with 2D positions (rotating these positions around a certain point is much easier if the are stored as complex numbers - exp(1j*phi) vs 2x2 Rotationmatrix)). Simple delegation of the properties is fine |
Support for abs() should be added as well. This makes sense for real valued data as well. In 0.10:
I tried to fix this by adding
to the series class. This has the effect that |
why would that be a property? |
This is already defined
|
You are right, the property decorator is wrong and both
I can change my code to use np.abs instead - I just want you to know that abs(Series) is no longer working in 0.12dev. |
I have a PR brewing...it'll be in master shortly. On Wed, Sep 11, 2013 at 7:09 PM, thomas notifications@github.com wrote:
|
Great. Thx for your quick fixes! |
The
Series
class in 0.10 had areal
and aimag
attribute but in 0.12dev these attrs are missing. This probably happend during the refactoring of the Series class for 0.12.The text was updated successfully, but these errors were encountered: