From 4fe693b6d1bdbe31af58e18de1c4d575b559db28 Mon Sep 17 00:00:00 2001 From: Burak Yavuz Date: Fri, 1 May 2015 21:54:33 -0700 Subject: [PATCH] addressed comments v0.1 --- .../scala/org/apache/spark/sql/DataFrameStatFunctions.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/core/src/main/scala/org/apache/spark/sql/DataFrameStatFunctions.scala b/sql/core/src/main/scala/org/apache/spark/sql/DataFrameStatFunctions.scala index 2b219481332c9..ee186127a158b 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/DataFrameStatFunctions.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/DataFrameStatFunctions.scala @@ -28,7 +28,7 @@ import org.apache.spark.sql.execution.stat._ final class DataFrameStatFunctions private[sql](df: DataFrame) { /** - * Calculate the correlation of two columns of a DataFrame. Currently only supports the Pearson + * Calculates the correlation of two columns of a DataFrame. Currently only supports the Pearson * Correlation Coefficient. For Spearman Correlation, consider using RDD methods found in * MLlib's Statistics. * @@ -43,7 +43,7 @@ final class DataFrameStatFunctions private[sql](df: DataFrame) { } /** - * Java Friendly implementation to calculate the Pearson correlation coefficient of two columns. + * Calculates the Pearson Correlation Coefficient of two columns of a DataFrame. * * @param col1 the name of the column * @param col2 the name of the column to calculate the correlation against