def split_history_and_current(windowed_ts):
    """
    Returns the first n-1 columns as X, and the last column as y. Useful mainly for forecasting scenarios
    :param windowed_ts: a pd.DataFrame with a date index and a column per timestamp. see get_windowed_ts
    :return:
    """
    X = windowed_ts.iloc[:, :-1].values
    y = windowed_ts.iloc[:, -1].values

    return (X, y)