tweaking how status chart is filling in data and rendering, working on #15
parent
55b3b82983
commit
2b78898f0b
6
app.py
6
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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue