cudf.DataFrame.corr#

DataFrame.corr(method='pearson', min_periods=None)#

Compute the correlation matrix of a DataFrame.

Parameters
method{‘pearson’, ‘spearman’}, default ‘pearson’

Method used to compute correlation:

  • pearson : Standard correlation coefficient

  • spearman : Spearman rank correlation

min_periodsint, optional

Minimum number of observations required per pair of columns to have a valid result.

Returns
DataFrame

The requested correlation matrix.