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.
I want to stay within a pandas framework to keep the headings of my data frame. I could use the pandas.as_matrix() function, but that turns it into an ndarray and I loose all the information provided by the headings.
Any suggestions?




所有评论(0)