You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/08/11 17:30:38 UTC

[GitHub] [spark] xinrong-meng commented on a diff in pull request #37465: [SPARK-40029][PYTHON][DOC] Make pyspark.sql.types examples self-contained

xinrong-meng commented on code in PR #37465:
URL: https://github.com/apache/spark/pull/37465#discussion_r943744049


##########
python/pyspark/sql/types.py:
##########
@@ -684,6 +702,28 @@ class StructType(DataType):
     ...     StructField("f2", IntegerType(), False)])
     >>> struct1 == struct2
     False
+
+    The below example demonstrates how to create a struct using class:`StructType`
+    and class:`StructField` on DataFrame:

Review Comment:
   nit: `create a struct ... on DataFrame` may not be very clear, how about `create a DataFrame based on a struct created using ...`?



-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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