-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: np.round does not work on a series in 0.18.0 #12600
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
this is the same issue as in #12238 and solved for The issue is numpy insists on call with positional arguments a 'sub-class' method, even though we are duck like, to implement things like this, which is fine. but its just not very friendlty. so we need to accept (but not advertise the separately, @gfyoung I think numpy should have a |
0.18.0 has been released to |
|
@gfyoung same thing as if |
Oh, oh, okay, I see what you mean. I have a PR opened against |
Also, for future reference, what's the oldest |
@gfyoung |
@Dr-Irv : Yeah, unfortunately |
Are we having problem with this bug as well? On my computer with the latest Anaconda, win7 it works fine. But on a collegue's, we started getting this for example works for me, but not for him
As a work-around, making below change solved it, but I do not know if I have broken something else. Our scripts seems to work though |
@Twizzledrizzle : Unfortunately, the fix isn't that simple. Your change is actually modifying |
In what version do you think series will be compatible with np.round again? Thank you for all your time on this! Still using our ugly fix in Or is it recommended to use series.round(...) instead? Unfortunately many places to fix in that case in our codebase. |
Should be compatible in |
Thank you gfyoung! I will try some find & replace magic |
First,
conda install pandas
is currently pulling down 0.18.0, which was unexpected since I only see RCs right now, but, on to the real issue...In 0.18.0 I cannot pass a series to np.round...
np.round does still work on a DataFrame in 0.18.0...
A Series on pandas 0.17.1...
Ok, I know that there's now a round method in pandas (which is great), but I like to use np.round in unit tests so that I can test against earlier versions of pandas.
Version info:
The text was updated successfully, but these errors were encountered: