SIENTIAPDE-1645: Add comprehensive model training observability metrics and Grafana dashboard.
This commit is contained in:
24
t.py
Normal file
24
t.py
Normal file
@@ -0,0 +1,24 @@
|
||||
# %%
|
||||
from pandas import read_csv, to_datetime
|
||||
|
||||
df = read_csv('data-1780946658143.csv')
|
||||
|
||||
# %%
|
||||
df.head()
|
||||
|
||||
# %%
|
||||
# normalize timestamp to naive "yyyy-MM-dd HH:mm:ss" (drop the "+00" UTC offset)
|
||||
df['timestamp'] = to_datetime(df['timestamp'], utc=True).dt.tz_localize(None)
|
||||
df['timestamp'] = df['timestamp'].dt.strftime('%Y-%m-%d %H:%M:%S')
|
||||
|
||||
# %%
|
||||
# pivot the dataframe
|
||||
df = df.pivot(index='timestamp', columns='variable', values='value')
|
||||
|
||||
# %%
|
||||
df.head()
|
||||
|
||||
|
||||
# %%
|
||||
df.to_csv('data-1780946658143-pivot.csv')
|
||||
# %%
|
||||
Reference in New Issue
Block a user