Gurobi / gurobi-logtools

Extract and visualize information from Gurobi log files
Apache License 2.0
100 stars 16 forks source link

Fix for deprecation warnings #49

Closed venaturum closed 2 months ago

venaturum commented 3 months ago

We see some deprecation warnings under Pandas 2:

gurobi_logtools/helpers.py:29: 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.

gurobi_logtools/helpers.py:47: 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.

gurobi-logtools/tests/test_fill_defaults.py:23: DeprecationWarning: is_categorical_dtype is deprecated and will be removed in a future version. Use isinstance(dtype, pd.CategoricalDtype) instead