I am new to pandas and go around in circles trying to find an easy way to solve the following problem:
I have a large correlation matrix (several thousand rows / columns) as a data frame and I would like to extract the maximum value for the column, excluding "1", which, of course, is present in all columns (matrix diagonal).
Tried all kinds of options .max (). Imax (), including the following:
corr.drop(corr.idxmax()).max()
But get only meaningless results. Any help is appreciated.
source
share