def splitXY(df):
    """Given a dataFrame of data, 
    split it into X (features and values) and Y (label vector).
    Assume the last column is the class column.
    """
    return df[df.columns[0:-1]], df[df.columns[-1]];