-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DataFrame.replace only replaces the first occurrence of replacement pattern #6689
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
Feels like a changing-dtype issue, or maybe a mixup of values and keys (True == 1 and False == 0):
but I've never fully understood the intended semantics of |
Yeah, it looks like the keys of the inner dict are being interpreted as indices to match, not values, which explains the Y/N, N/Y swap above. For example:
|
Are you guys running master? I fixed a similar bug somewhat recently. |
@cpcloud: I am, at least. |
Okay thanks I'll take a look. Looks like a dtype issue. @fonnesbeck thanks for the report. |
@jreback Is there a way to select and set a block by name? Something like |
i want to operate on a block inplace or out of place but see the changes in the whole block manager |
Nevermind. |
This is best explained by a screenshot:
I'm running a pretty recent build of Pandas ('0.13.1-213-gc174c3d') on Python 2.7.5 on OS X 0.9.2.
The text was updated successfully, but these errors were encountered: