def inverse(d):
    '\n    Invert the dataframe by inverting the underlying matrix\n    '
    return pd.DataFrame(inv(d.values), index=d.columns, columns=d.index)
Invert the dataframe by inverting the underlying matrix
def inverse(d):
    '\n    \n    '
    return pd.DataFrame(inv(d.values), index=d.columns, columns=d.index)