tweaking how status chart is filling in data and rendering, working on #15

main
Mark Cotton 2023-08-15 08:56:44 -05:00
parent 55b3b82983
commit 2b78898f0b
1 changed files with 4 additions and 2 deletions

6
app.py
View File

@ -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)