soft-matter / trackpy

Python particle tracking toolkit
http://soft-matter.github.io/trackpy
Other
437 stars 131 forks source link

level keyword argument was removed in pandas>2.0 #746

Closed Pawelbure closed 6 months ago

Pawelbure commented 6 months ago

Thanks for this very helpful library! When I run tp.emsd function I run into the following TypeError: TypeError: mean() got an unexpected keyword argument 'level'

I try to compute it on the following data frame:

output_trackpy

It seems that pandas has removed the level keyword argument from the mean function? Or could I have somehow used the function wrong?

caspervdw commented 6 months ago

Thanks @Pawelbure for your report. This issue was fixed in https://github.com/soft-matter/trackpy/pull/740 and will be released shortly