I have a correlation dataframe, and I'm trying to turn it into different lists:
A B C
A 1.000000 0.932159 -0.976221
B 0.932159 1.000000 -0.831509
C -0.976221 -0.831509 1.000000
The output I need is:
[A, B, 0.932159]
[A, C, -0.976221]
[B, A, 0.932159]
[B, C, -0.831509]
[C, A, -0.976221]
[C, B, -0.831509]
I have tried converting the dataframe into list, but I don't get what I need. Thanks