Github user HyukjinKwon commented on a diff in the pull request: https://github.com/apache/spark/pull/20390#discussion_r163755064 --- Diff: python/pyspark/sql/dataframe.py --- @@ -1881,6 +1881,28 @@ def toDF(self, *cols): jdf = self._jdf.toDF(self._jseq(cols)) return DataFrame(jdf, self.sql_ctx) + @since(2.4) --- End diff -- Could we put this API between `def columns(self):` and `def alias(self, alias):`?
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org