Transform Correlation Matrix into dataframe with records for each row column pair
问题 I have a large matrix of correlations (1093 x 1093). I'm trying my matrix into a dataframe that has a column for every row and column pair, so it would (1093)^2 records. Here's a snippet of my matrix 60516 45264 02117 60516 1.00000000 -0.370793012 -0.082897941 45264 -0.37079301 1.000000000 0.005145601 02117 -0.08289794 0.005145601 1.000000000 The goal from here would be to have a dataframe that looks like this: row column correlation 60516 60516 1.000000000 60516 45264 -0.370793012 ........