aazuspan / sankee

Visualize classified time series data with interactive Sankey plots in Google Earth Engine
https://sankee.readthedocs.io/en/latest/index.html
MIT License
97 stars 15 forks source link

Deprecation warning for Pandas `groupby` functions #42

Closed aazuspan closed 1 year ago

aazuspan commented 1 year ago

Running modis_snow_and_ice in Binder gives the following warning when you run dataset.sankify:

/srv/conda/envs/notebook/lib/python3.8/site-packages/sankee/plotting.py:153: FutureWarning:

The default value of numeric_only in DataFrameGroupBy.mean is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.

/srv/conda/envs/notebook/lib/python3.8/site-packages/sankee/plotting.py:159: FutureWarning:

The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.

This happens within SankeyPlot.get_sorted_classes. I'm guessing I intentionally dropped some non-numeric columns that weren't needed, but I'll need to clean that up.