[jira] [Commented] (SPARK-40472) Improve pyspark.sql.function example experience
[ https://issues.apache.org/jira/browse/SPARK-40472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17606879#comment-17606879 ] deshanxiao commented on SPARK-40472: [~hyukjin.kwon] OK, thanks~ > 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
[jira] [Commented] (SPARK-40472) Improve pyspark.sql.function example experience
[ https://issues.apache.org/jira/browse/SPARK-40472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17606398#comment-17606398 ] Hyukjin Kwon commented on SPARK-40472: -- I was thinking about this too but maybe it's fine as is because we can assume that users are visiting the page of a package, and they would likely know that they would need to import the current package they are visiting. > 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