holoviz / holoviews

With Holoviews, your data visualizes itself.
https://holoviews.org
BSD 3-Clause "New" or "Revised" License
2.67k stars 400 forks source link

FutureWarning for pandas observed=False #6305

Closed ahuang11 closed 2 weeks ago

ahuang11 commented 2 weeks ago

Another warning in the Plotting notebook: https://github.com/holoviz/holoviz/blob/main/examples/tutorial/02_Plotting.ipynb

/home/conda/scipy/669999b7-1720037067-35-hvplot-and-panel/lib/python3.10/site-packages/holoviews/core/data/pandas.py:260: FutureWarning: The default of observed=False is deprecated and will be changed to True in a future version of pandas. Pass observed=False to retain current behavior or observed=True to adopt the future default and silence this warning.
  dataset.data.groupby(group_by, sort=False)]

I think groupby needs observed=False passed to suppress.