Github user HyukjinKwon commented on a diff in the pull request: https://github.com/apache/spark/pull/16824#discussion_r99727122 --- Diff: python/pyspark/sql/dataframe.py --- @@ -233,11 +245,13 @@ def schema(self): def printSchema(self): """Prints out the schema in the tree format. + >>> from pyspark.sql import Row + >>> df = spark.createDataFrame([Row(name='Alice', age=2), Row(name='Bob', age=5)]) >>> df.printSchema() root - |-- age: integer (nullable = true) + |-- age: long (nullable = true) --- End diff -- This one too.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org