I am trying to split the columns of a dataframe to find pmcc of all possible combinations of (two)columns from a dataframe containing n columns, e.g. in this case, with 3 columns Length Diameter Height
0.455 0.365 0.095
0.350 0.265 0.090
0.530 0.420 0.135
0.440 0.365 0.125
0.330 0.255 0.22
here I have to find pmcc for all combinations, eg, (length, diameter), (diameter, height), etc. Any help! Thanks