-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
BUG: DataFrame.clip sets all values to the lower_bound #2747
Comments
try this |
Wow, that's confusing! Even if there was a good argument for going against the numpy convention, it's not even consistent within pandas as Any chance this can be changed? I know it would break code already out there, but I'm betting there's incorrect code out there already where someone has assumed the numpy convention or tried to write generic Series/DataFrame code using clip.
|
agreed...should prob be changed... you can also accomplish what you are after like this (but prob more confusing)...though same syntax works on series
|
closed in #2750 |
Why not the same treatment for Series? (It just happened that I had a bug due to this) |
what version? |
Sorry, I missed that issue. I'm on 0.12, I just checked master and there is no sign of: lower, upper = min(lower, upper), max(lower, upper) in series.clip |
The following unit-test fails:
The text was updated successfully, but these errors were encountered: