You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is the same issue as in #9946 (same because the same underlying cython routine is used)
you will notice that using lambda x: x.copy() is the same result.
pandas is trying to infer whether you have mutated things (or not), by comparing indexes. This is prob a bug, but this is a bit of a rabbit hole as I think the best thing to do would actually to ban this entirely (mutation). So the outputs can be more predictible. You are welcome to dig-in!.
When I run this code on 0.17.0 on Python 3.5.0
I get
The index gets duplicated (and turned into a multiindex) as a result of the
sort
within thegroupby
.Appears to be a bug to me.
The text was updated successfully, but these errors were encountered: