You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "deshanxiao (Jira)" <ji...@apache.org> on 2022/09/16 10:06:00 UTC

[jira] [Updated] (SPARK-40472) Improve pyspark.sql.function example experience

     [ https://issues.apache.org/jira/browse/SPARK-40472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

deshanxiao updated SPARK-40472:
-------------------------------
    Description: 
There are many exanple in pyspark.sql.function:
{code:java}
    Examples
    --------
    >>> df = spark.range(1)
    >>> df.select(lit(5).alias('height'), df.id).show()
    +------+---+
    |height| id|
    +------+---+
    |     5|  0|
    +------+---+ {code}
We can add import statements so that the user can directly run it.

> Improve pyspark.sql.function example experience
> -----------------------------------------------
>
>                 Key: SPARK-40472
>                 URL: https://issues.apache.org/jira/browse/SPARK-40472
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark
>    Affects Versions: 3.3.0
>            Reporter: deshanxiao
>            Priority: Minor
>
> There are many exanple in pyspark.sql.function:
> {code:java}
>     Examples
>     --------
>     >>> df = spark.range(1)
>     >>> df.select(lit(5).alias('height'), df.id).show()
>     +------+---+
>     |height| id|
>     +------+---+
>     |     5|  0|
>     +------+---+ {code}
> We can add import statements so that the user can directly run it.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org