Github user HyukjinKwon commented on a diff in the pull request: https://github.com/apache/spark/pull/16824#discussion_r99728503 --- Diff: python/pyspark/sql/dataframe.py --- @@ -247,9 +261,11 @@ def explain(self, extended=False): :param extended: boolean, default ``False``. If ``False``, prints only the physical plan. + >>> from pyspark.sql import Row + >>> df = spark.createDataFrame([Row(name='Alice', age=2), Row(name='Bob', age=5)]) >>> df.explain() == Physical Plan == - Scan ExistingRDD[age#0,name#1] + Scan ExistingRDD[age#...,name#...] --- End diff -- We now create multiple dataframes so the columns are not always `#0` and `#1`.
--- 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