Skip to content
Snippets Groups Projects
Commit 16b84e11 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Improve CSV read-in

parent f1a38f6f
No related branches found
No related tags found
No related merge requests found
......@@ -35,9 +35,7 @@ def main():
hours = 2
while True:
df = pd.read_csv(
args['TIME_RESIDUALS_FILE'],
names=['run', 'timestamp', 'du', 'floor', 'dom_id', 't_res', 'Q'])
df = pd.read_csv(args['TIME_RESIDUALS_FILE'])
df = df[df.timestamp > time.time() - 60 * 60 * hours]
fig, axes = plt.subplots(nrows=6,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment