Closed yichechang closed 1 year ago
From pandas 2.0.0 release notes:
Removed the level keyword in DataFrame and Series aggregations; use groupby instead (GH39983)
I believe #738 points to the same issue and there are some discussions. I'll close this issue.
Keyword argument
level
for aggregation methods of DataFrame or Series (e.g.,.mean
) has been removed from pandas 2.0 release in favor of explicitly using.groupby
operation. This has however breaks at leasttrackpy.motion.emsd
.Perhaps limiting trackpy's pandas dependency to be < 2 before rewriting these methods with
groupby
?