Calculating the inverse of a matrix with pandas
<p>I have a large pandas.DataFrame - which is a square matrix with header and index, and I am trying to use pandas' capabilities to calculate the inverse of that matrix, without going directly through numpy.</p>
<p>I want to stay within a pandas framework to keep the headings of my data frame. I could use the <a href="https://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.DataFrame.as_matrix.html" rel="nofollow noreferrer"><code>pandas.as_matrix()</code></a> function, but that turns it into an ndarray and I loose all the information provided by the headings.</p>
<p>Any suggestions?</p>