-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: broadcasting subtraction #3703
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
Can you recommend how to get around this bug without upgrading to pandas 0.11.1 or 0.12? |
try |
Sorry, I want to subtract a value from each cell in the dataframe. I don't want to write anything to a file. |
I don't think there is a problem in 0.11.0.. is this what you are trying to do?
|
There is a problem, but it's more subtle than you imagine. That's what makes this bug so frustrating. My first post shows exactly how to reproduce the problem. |
Here's a much simpler example:
|
I figured out a way to get around this bug:
|
yeh, the bug in 0.11.0 is because its a mixed_frame (e.g. more than one dtype), if its not mixed it will work fine; this is fixed in 0.11.1 |
This bug applies to version
0.11.0
. I observe correct behavior in version0.12.0.dev-84fb0e0
, so the issue seems to have been fixed. Still, I thought someone might find it useful to see this report.EDIT: Replaced a larger and more complicated example with a minimal example.
The text was updated successfully, but these errors were encountered: