liesel-devs / liesel

A probabilistic programming framework
https://liesel-project.org
MIT License
38 stars 2 forks source link

FutureWarning in gs.Summary originating from pandas #103

Closed jobrachem closed 10 months ago

jobrachem commented 10 months ago

A call like

gs.Summary(results)

currently results in this FutureWarning:

liesel/goose/summary_m.py:391: 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.
  df["chain"] = df.groupby(level=[0, 1, 2, 3]).cumcount()