correlation
builtin
¶
correlation(
data, *, columns=None, weights=None, method="pearson"
)
Correlation matrix of the columns of data, each pair over rows without NaN.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
(array_like, PointSet, BlockModel, Table or dict)
|
|
required |
columns
|
sequence of str
|
Columns of |
None
|
weights
|
array_like or str
|
Declustering weights, or their column in |
None
|
method
|
(pearson, spearman, covariance)
|
Pearson correlation, rank correlation, or the covariance (over the sum
of weights, as the variance of |
"pearson"
|
Returns:
| Type | Description |
|---|---|
ndarray
|
|
used in