DataFrameStatFunctions.Corr Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.