I have several timeseries arranged in a data frame, similar to below:
category value time_idx 0 810 0.118794 0 1 830 0.552947 0 2 1120