metricq-python icon indicating copy to clipboard operation
metricq-python copied to clipboard

Pandas division by zero

Open tilsche opened this issue 1 year ago • 0 comments

When the PandasHistoryClient creates aggregate timelines, any interval with count=0 will lead to a division by zero in mean_sum (and probably in interval_sum as well anyway). We probably want NaN there.

I'm not sure whether to fix this in the dataframe generation or in the TimeAggregate properties.

tilsche avatar Nov 30 '23 19:11 tilsche