From eefc4e0f2f71c342d0032aec65ef58104bfcbc08 Mon Sep 17 00:00:00 2001 From: Rob Carver Date: Wed, 22 Nov 2023 09:46:53 +0000 Subject: [PATCH] removed annoying warning from volumes --- sysproduction/data/volumes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysproduction/data/volumes.py b/sysproduction/data/volumes.py index 3a28dc41c2..de6a3530d7 100644 --- a/sysproduction/data/volumes.py +++ b/sysproduction/data/volumes.py @@ -111,6 +111,6 @@ def get_smoothed_volume_ignoring_old_data( return 0.0 smoothed_recent_volumes = recent_volumes.ewm(span=span).mean() - final_volume = smoothed_recent_volumes[-1] + final_volume = smoothed_recent_volumes.iloc[-1] return final_volume