-
-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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: Assigning Panel item using .ix/.loc no longer works #7763
Comments
hmm, must be an alignment issue. thanks, marking as a bug. note that
|
Any update on this? I have a situation where I need to replace the columns of a 'minor'-oriented panel, necessitating Any suggested workarounds for this? |
that syntax should work |
Investigation showed what's different about my use case. My issue is I am trying to add columns. For the example above, my panel was set up like so:
I'm trying to add a 'd' column to the panel:
such that only the 'A' label gets its values replaced. For B and C, the 'd' column should be NaN. The way I'd thought to do it was:
But this doesn't add 'd'. I end up with:
Is this how it ought to behave? Am I asking for what I want the wrong way? |
@jreback yes. Example code: https://gist.github.com/spitz-dan-l/01a8e7788ffaeec87fd7 |
@spitz-dan-l prob best to just reindex the axes to the union of the axes you want e.g. something like
or you can use |
thanks! |
I am updating a codebase from an OLD version of pandas (0.7.3) to current version (0.14.1).
The following code has stopped working correctly (using .ix[] or .loc[]):
Output:
However, if I simply do this:
It behaves as expected:
Also, if I assign more than just the item, it works fine:
Thanks.
The text was updated successfully, but these errors were encountered: