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
Years should not be aggregated.
This happens as pandas tries to aggregate every column if possible.
Solution: Filter Dataframe after aggregation by groupby columns + value/series