Skip to content
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

pandas 2.0 breaks emsd calculation #730

Closed
yichechang opened this issue Apr 13, 2023 · 2 comments
Closed

pandas 2.0 breaks emsd calculation #730

yichechang opened this issue Apr 13, 2023 · 2 comments

Comments

@yichechang
Copy link

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 least trackpy.motion.emsd.

Perhaps limiting trackpy's pandas dependency to be < 2 before rewriting these methods with groupby?

@yichechang
Copy link
Author

From pandas 2.0.0 release notes:

Removed the level keyword in DataFrame and Series aggregations; use groupby instead (GH39983)

@yichechang
Copy link
Author

I believe #738 points to the same issue and there are some discussions. I'll close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant