Used seconds instead of milliseconds on first commit

Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
This commit is contained in:
Matthew Stidham
2021-04-15 17:06:48 -07:00
parent c3b3f8a161
commit aeb638d91b

View File

@@ -48,7 +48,7 @@ class CSVtoInflux(Realm):
# Submit data to the influx db if configured to do so.
def post_to_influx(self):
df = pd.read_csv(self.target_csv, sep='\t')
df['Date'] = pd.to_datetime(df['Date'], unit='s')
df['Date'] = pd.to_datetime(df['Date'], unit='ms')
df['Date'] = [str(timestamp.isoformat()) for timestamp in df['Date']]
dates = list(set(df['Date']))
scriptname=df['test-id'][0]