def getColumn(df, name):
    """ THis gets a column from a Datafram regardless if it is an index or data column"""
    
    # First figur out if this is a data or index column
    if name in df.columns:
        return df[name].values
    elif name in df.index.names:
        return df.index.get_level_values(name).values
    else:
        raise ValueError('Name is not a data or index column')