lisphilar / covid19-sir

CovsirPhy: Python library for COVID-19 analysis with phase-dependent SIR-derived ODE models.
https://lisphilar.github.io/covid19-sir/
Apache License 2.0
109 stars 44 forks source link

[Bug] DeprecationWarning: DataFrameGroupBy.apply operated on the grouping columns #1596

Closed lisphilar closed 10 months ago

lisphilar commented 10 months ago

Checkbox

Summary

Tests failed with the following warning.

DeprecationWarning: DataFrameGroupBy.apply operated on the grouping columns. This behavior is deprecated, and in a future version of pandas the grouping columns will be excluded from the operation. Either pass `include_groups=False` to exclude the groupings or explicitly select the grouping columns after groupby to silence this warning.

Reproducible example script

NA

The current outputs

No response

Expected outputs

No response

Environment

- CovsirPhy version: 3.0.0
- Python version: 3.11.0

Package manager (required if installation issue)

No response

Platform (required if installation issue)

No response

Additional Context

No response