Minimal working exemple with time series


I am trying to use plotly to investigate time series.

I have a simple data frame df, with:

  • id columns identifying the time series
  • values columns identifying the time serie values at each time step: t0, t1, … t100
  • a 2d embedding : emb0 & emb1
  • some value to color the point

I’d like to explore the 2d embedding, select some data with lasso and plot the selected time series in a second graph.

I am able to plot the embedding with the following simple exemple:

import as px
fig = px.scatter(df, x="emb0", y="emb1", color='color')

how would one be able to plot a second graph with the selected time series ?