# Time-series visualization¶

Recently, I frequently started to visualize time-series with various annotations and in cycle plots to better understand their seasonality. As a reference to my future self, but also for you I will write this blog post.

Therefore, please excuse if at times there is amost no text but only code.

First I will generate some dummy data and show my existing plots.

## data generation¶

We want to only consider the labels we have and figure out if we see a valid match there. But what does this say about precision?

joined = a.merge(b,on='id')
joined = joined[joined.ts.between(joined.ts1,joined.ts2)]

other options with SQLITE and SQL BETWEEN operator would exist but are more complex to integrate (for now) https://stackoverflow.com/questions/30627968/merge-pandas-dataframes-where-one-value-is-between-two-others