Return-Path: X-Original-To: apmail-spark-issues-archive@minotaur.apache.org Delivered-To: apmail-spark-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B6C72175F5 for ; Fri, 1 May 2015 04:16:06 +0000 (UTC) Received: (qmail 28480 invoked by uid 500); 1 May 2015 04:16:06 -0000 Delivered-To: apmail-spark-issues-archive@spark.apache.org Received: (qmail 28448 invoked by uid 500); 1 May 2015 04:16:06 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 28380 invoked by uid 99); 1 May 2015 04:16:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 May 2015 04:16:06 +0000 Date: Fri, 1 May 2015 04:16:06 +0000 (UTC) From: "Apache Spark (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (SPARK-7240) Covariance for DataFrames MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-7240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Apache Spark reassigned SPARK-7240: ----------------------------------- Assignee: Apache Spark (was: Burak Yavuz) > Covariance for DataFrames > ------------------------- > > Key: SPARK-7240 > URL: https://issues.apache.org/jira/browse/SPARK-7240 > Project: Spark > Issue Type: Sub-task > Components: SQL > Reporter: Xiangrui Meng > Assignee: Apache Spark > > This JIRA is for computing stable covariance between two columns. The method `cov` should live under `df.stat` (similar to `na`). > {code} > df.stat.cov(col1, col2): Double > {code} > Stable algorithm: http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Covariance > UDAF support will be added later. Then users can do > {code} > df.groupBy("gender").agg(cov("age", "salary").as("cov_age_salary")) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org