From 2b78898f0b14cf5051d8f948def5892c2959bf85 Mon Sep 17 00:00:00 2001 From: Mark Cotton Date: Tue, 15 Aug 2023 08:56:44 -0500 Subject: [PATCH] tweaking how status chart is filling in data and rendering, working on #15 --- app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index ca1c4ec..a877c0b 100644 --- a/app.py +++ b/app.py @@ -269,8 +269,10 @@ def camera_status_plot(esn=None): imp['startTimestamp'] = pd.to_datetime(imp['startTimestamp']) imp = imp.drop(['id', 'actorId', 'data', 'status_desc'], axis=1) - data = imp.resample('S').bfill() - data['status'] = data['status'].astype('int64') + imp['status'] = imp['status'].ffill() + data = imp.resample('S').ffill() + logging.warn(data.tail(200)) + #data['status'] = data['status'].astype('int64') data = data.drop(['startTimestamp'], axis=1)