mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
Used seconds instead of milliseconds on first commit
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user