crate / cratedb-examples

A collection of clear and concise examples how to work with CrateDB.
Apache License 2.0
8 stars 7 forks source link

Time Series: More compatibility with pandas 2.0 #496

Closed amotl closed 2 weeks ago

amotl commented 2 weeks ago

About

Accompany and complete:

Conclude and finalize fixes:

Details

groupby.mean() has numeric_only= argument whose default value was True in the past but since pandas 2.0, its default value is False.

An implication is that string columns are not dropped when a statistical method such as mean or std is called on the groupby object (as was done in the past). To solve the issue, pass numeric_only=True.

-- https://stackoverflow.com/a/76597931