lightweight_mmm icon indicating copy to clipboard operation
lightweight_mmm copied to clipboard

Constraint to pandas < 2.0.0 needed

Open philipherrmann opened this issue 2 years ago • 0 comments
trafficstars

The example notebooks call set_precision of a pandas dataframe's Styler object, which is deprecated since pandas 1.3 and remoted in pandas 2.0 (c.f. https://pandas.pydata.org/pandas-docs/version/1.5/reference/api/pandas.io.formats.style.Styler.set_precision.html), for example in this cell:

https://github.com/google/lightweight_mmm/blob/f61a18b9883c2dccac8e360970935e3b6ee8265e/examples/simple_end_to_end_demo.ipynb#L395

I'd suggest to either introduce a constraint pandas < 2.0 or to use pandas set_option API. Using the default precision might also be considered as a quickfix.

philipherrmann avatar Aug 21 '23 11:08 philipherrmann