datacarpentry / python-ecology-lesson

Data Analysis and Visualization in Python for Ecologists
https://datacarpentry.org/python-ecology-lesson
Other
160 stars 310 forks source link

Fix default values of .mean for pandas version >= 2 #565

Closed catchSheep closed 1 year ago

catchSheep commented 1 year ago

PR for issue https://github.com/datacarpentry/python-ecology-lesson/issues/564

Pandas version >= 2 changes the default argument of .mean to numeric_only = False from numeric_only=True This PR just inserts numeric_only=True into the relevant three lines

github-actions[bot] commented 1 year ago

Thank you!

Thank you for your pull request :smiley:

:robot: This automated message can help you check the rendered files in your submission for clarity. If you have any questions, please feel free to open an issue in {sandpaper}.

If you have files that automatically render output (e.g. R Markdown), then you should check for the following:

Rendered Changes

:mag: Inspect the changes: https://github.com/datacarpentry/python-ecology-lesson/compare/md-outputs..md-outputs-PR-565

The following changes were observed in the rendered markdown documents:

 02-starting-with-data.md | 6 +++---
 md5sum.txt               | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
What does this mean? If you have source files that require output and figures to be generated (e.g. R Markdown), then it is important to make sure the generated figures and output are reproducible. This output provides a way for you to inspect the output in a diff-friendly manner so that it's easy to see the changes that occur due to new software versions or randomisation.

:stopwatch: Updated at 2023-05-29 12:25:58 +0000