DataFrameStatFunctions.Corr Method

Definition

Overloads

Corr(String, String)

Calculates the Pearson Correlation Coefficient of two columns of a DataFrame.

Corr(String, String, String)

Calculates the correlation of two columns of a DataFrame.

Corr(String, String)

Calculates the Pearson Correlation Coefficient of two columns of a DataFrame.

public double Corr (string colName1, string colName2);
member this.Corr : string * string -> double
Public Function Corr (colName1 As String, colName2 As String) As Double

Parameters

colName1
String

First column name

colName2
String

Second column name

Returns

The Pearson Correlation Coefficient

Applies to

Corr(String, String, String)

Calculates the correlation of two columns of a DataFrame.

public double Corr (string colName1, string colName2, string method);
member this.Corr : string * string * string -> double
Public Function Corr (colName1 As String, colName2 As String, method As String) As Double

Parameters

colName1
String

First column name

colName2
String

Second column name

method
String

Method name for calculating correlation

Returns

The Pearson Correlation Coefficient

Remarks

Currently only the Pearson Correlation Coefficient is supported.

Applies to