snowflake.snowpark.DataFrame.union¶
- DataFrame.union(other: DataFrame) DataFrame[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.6.1/src/snowflake/snowpark/dataframe.py#L1683-L1715)¶
Returns a new DataFrame that contains all the rows in the current DataFrame and another DataFrame (
other), excluding any duplicate rows. Both input DataFrames must contain the same number of columns.- Example::
- Parameters:
other – the other
DataFramethat contains the rows to include.