Quantcast
Channel: How to retrieve row and column names from data frame? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Answer by piRSquared for How to retrieve row and column names from data frame?

stack to line up rows and columnsquery to filter what you needcmat.stack().to_frame('item').query('.3 < item < .9')

View Article



How to retrieve row and column names from data frame?

I have generated a correlation matrix from a dataframe using pandas.corr:cmat = sub1.corr()cmatOut[75]: CESI001 CESI002 CESI003 CESI004CESI001 1.000000 0.829723 0.046925 0.074475CESI002 0.829723...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images