[ 
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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to