Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,6 @@ def plot_history(sample=True, sampling_interval_minutes=180):
|
|
51 |
sampled_timestamps = [unique_timestamps[0]]
|
52 |
for i, t in enumerate(unique_timestamps[1:]):
|
53 |
diff = sampled_timestamps[-1] - t
|
54 |
-
print (sampled_timestamps[-1], t, diff)
|
55 |
if diff > datetime.timedelta(minutes=sampling_interval_minutes):
|
56 |
sampled_timestamps.append(t)
|
57 |
dfh = dfh[dfh["polling_timestamp"].isin(sampled_timestamps)]
|
|
|
51 |
sampled_timestamps = [unique_timestamps[0]]
|
52 |
for i, t in enumerate(unique_timestamps[1:]):
|
53 |
diff = sampled_timestamps[-1] - t
|
|
|
54 |
if diff > datetime.timedelta(minutes=sampling_interval_minutes):
|
55 |
sampled_timestamps.append(t)
|
56 |
dfh = dfh[dfh["polling_timestamp"].isin(sampled_timestamps)]
|