From e169572219926851706bfa7d6a81d8fcdfba033f Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Thu, 29 Aug 2019 16:54:32 +1000 Subject: [PATCH] Round time series to 1 decimal place --- daqviewer/daqviewer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daqviewer/daqviewer.py b/daqviewer/daqviewer.py index 3d9e2fd..db103d5 100644 --- a/daqviewer/daqviewer.py +++ b/daqviewer/daqviewer.py @@ -76,6 +76,9 @@ def parse_contents(contents, filename): # Zero time series based on first 5s df -= df[:5].mean() + # Round dataframe to save disk space + df = df.round(1) + ts = [] for col in df.columns: trace = go.Scatter(x=df.index, y=df[col], name=col, opacity=0.8)