This code is horrible use this as what not to do. You can find a better version of this here: renells repo.
This was a class project on visualizing time series data. I used the Keppler light intensity data from: https://www.kaggle.com/keplersmachines/kepler-labelled-time-series-data