Closed catchSheep closed 1 year ago
@catchSheep Thanks for your report! Would you like to submit a pr to fix the issue?
No worries, I just made one: https://github.com/datacarpentry/python-ecology-lesson/pull/565 I ended up finding three values needing to be changed in this episode, included in that commit
Fixed by #565
In
episodes/02-starting-with-data.md
line 519 no longer produces the expected output in pandas>=2, and instead produces a very long error as it tried to take the mean of the non-numeric columns (eg species code, gender etc)In pandas version 1.5.3 we get a future warning indicating that it will no longer work:
This can be fixed by just passing in
numeric_only=True
togrouped_data.mean()
, e.g.: