zhengruifeng commented on code in PR #42628:
URL: https://github.com/apache/spark/pull/42628#discussion_r1302719588


##########
python/pyspark/sql/functions.py:
##########
@@ -11572,11 +11572,11 @@ def explode(col: "ColumnOrName") -> Column:
     Examples
     --------
     >>> from pyspark.sql import Row
-    >>> eDF = spark.createDataFrame([Row(a=1, intlist=[1,2,3], mapfield={"a": 
"b"})])
-    >>> eDF.select(explode(eDF.intlist).alias("anInt")).collect()
+    >>> edf = spark.createDataFrame([Row(a=1, intlist=[1,2,3], mapfield={"a": 
"b"})])

Review Comment:
   nit: I guess we should use `df` here, `edf` or `eDF` seems weird



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to