def form_dataframe_to_arrays(df):
    """
    Convert dataframes into arrays in both variables and target
    """     
    feature_order = list(df.filter(regex="[^M_t+\d]").columns)
    X = df.filter(regex="[^M_t+\d]").values
    Y = df.filter(regex="[\+]").values.flatten()
    return X,Y,feature_order