DataFrame.corr() now computing correlations only once

DataFrame.corr() for 'spearman' and 'kendall' was computing some correlations twice.