mohsenfayyaz commited on
Commit
8b3b831
·
verified ·
1 Parent(s): 18262d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -1
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)]