-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: Can't assign values via .ix or .loc to a Panel with MultiIndex #6286
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 was completely untested so suprised it used to work |
Possibly related: #5773 I look at the code but didn't make any progress on a fix. |
Wondering what the current workaround would be? Now that we are more strict on the entire view/copy thing (cause previously you could just do something cheap like a Idk how many people actually use panels but this bug looks pretty serious. |
I am not sure this is a bug, but rather a specification issue. right now the indexers cannot differentiate between a multi-index and another axis easily (if at all, sometimes its completely ambiguous) you can use |
@jreback I guess the reference here should be how dataframes work: |
yep |
Yea, so as a consequence |
you can do that as long as its a single-dtyped Panel....the other is prob a bug and will get to it at some point |
closing as Panels are deprecated |
If you have a Panel with a MultiIndex, you can read but not write to it with
.ix
(same with.loc
).Before 0.13 I would normally do something like
pn[item].ix[a, b][stuff] = values
, surprisingly it used to work (now it spits out aSettingWithCopyWarning
but still kinda works).So what are the valid options in 0.13?
The text was updated successfully, but these errors were encountered: