diff --git a/python/pyspark/sql/dataframe.py b/python/pyspark/sql/dataframe.py index cd06b3fa3eeb6..fb34625b71ef3 100644 --- a/python/pyspark/sql/dataframe.py +++ b/python/pyspark/sql/dataframe.py @@ -5935,7 +5935,7 @@ def drop(self, *cols: "ColumnOrName") -> "DataFrame": @dispatch_df_method def toDF(self, *cols: str) -> "DataFrame": - """Returns a new :class:`DataFrame` that with new specified column names + """Returns a new :class:`DataFrame` with new specified column names .. versionadded:: 1.6.0