pyspark.sql.DataFrame.unionAll¶
-
DataFrame.
unionAll
(other: pyspark.sql.dataframe.DataFrame) → pyspark.sql.dataframe.DataFrame[source]¶ Return a new
DataFrame
containing the union of rows in this and anotherDataFrame
.New in version 1.3.0.
Changed in version 3.4.0: Supports Spark Connect.
- Parameters
- Returns
See also
Notes
This method combines all rows from both DataFrame objects with no automatic deduplication of elements.
Use the distinct() method to perform deduplication of rows.
unionAll()
is an alias tounion()