You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/09/08 23:37:46 UTC
[jira] [Commented] (SPARK-9014) Allow Python spark API to use
built-in exponential operator
[ https://issues.apache.org/jira/browse/SPARK-9014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14735664#comment-14735664 ]
Apache Spark commented on SPARK-9014:
-------------------------------------
User '0x0FFF' has created a pull request for this issue:
https://github.com/apache/spark/pull/8658
> Allow Python spark API to use built-in exponential operator
> -----------------------------------------------------------
>
> Key: SPARK-9014
> URL: https://issues.apache.org/jira/browse/SPARK-9014
> Project: Spark
> Issue Type: Wish
> Components: PySpark
> Affects Versions: 1.4.0
> Reporter: Jon Speiser
> Priority: Minor
>
> It would be nice if instead of saying:
> import pyspark.sql.functions as funcs
> df = df.withColumn("standarderror", funcs.sqrt(df["variance"]))
> ...if I could simply say:
> df = df.withColumn("standarderror", df["variance"] ** 0.5)
--
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