How to Convert a Time Series to a Supervised Learning Problem in Python
machinelearningmastery.com