def extract_X_y(df, label_col="label"):
    """Extract X and y from a dataframe
    """
    
    # read list of columns and remove label_col
    list_X_cols = list(df.columns)
    list_X_cols.remove(label_col)

    X = df[list_X_cols].to_numpy()
    y = df[label_col].to_numpy()
    return X, y