This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
def transform_to_supervised(df, | |
previous_steps=1, | |
forecast_steps=1, | |
dropnan=True): | |
""" | |
Transforms a DataFrame containing time series data into a DataFrame | |
containing data suitable for use as a supervised learning problem. |