In [1]:
import pandas as pd
data = pd.read_parquet('conector_latency_and_true_price.parquet')
2- Data overview (5 minutes downsample)¶
In [2]:
import datetime
import plotly.express as px
downsampled = (
data.set_index("timestamp", drop=False)
.groupby(["connector", "symbol"])
.resample("5T")
.last()
)
for symbol in data.symbol.unique():
symbol_data = downsampled[downsampled.symbol == symbol]
display(
px.line(
symbol_data,
x="timestamp",
y="price",
color="connector",
title=symbol
)
)