DataFrame.corr() のドキュメントを確認してください
Parameters
----------
method : {'pearson', 'kendall', 'spearman'} or callable
* pearson : standard correlation coefficient
* kendall : Kendall Tau correlation coefficient
* spearman : Spearman rank correlation
* callable: callable with input two 1d ndarrays
and returning a float. Note that the returned matrix from corr
will have 1 along the diagonals and will be symmetric
regardless of the callable's behavior
.. versionadded:: 0.24.0
DataFrame.corrwith() もチェックしてください
警告: これは対称相関行列を計算します。CramrsV ですが、この方法は TheilsU やその他の非対称相関行列には適していません。