I\'m trying to find canonical correlations between rows in one data frame. I have 4 columns which are \'ticker\', \'group\', \'subgroup\', and \'return\' in that order. I want t