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
The SO posts are adding columns to the DataFrame in groupby(...).apply and groupby(...).transform. In general, mutating a container while iterating over it invalidates the iterators, this shouldn't be allowed, similar to #12653.
Possible to simplify?
xref http://stackoverflow.com/questions/12389898/python-pandas-how-to-add-a-totally-new-column-to-a-data-frame-inside-of-a-group
The text was updated successfully, but these errors were encountered: