snowflake.snowpark.DataFrame.subtract¶
- DataFrame.subtract(other: DataFrame) DataFrame[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.6.1/src/snowflake/snowpark/dataframe.py#L1886-L1918)¶
Returns a new DataFrame that contains all the rows from the current DataFrame except for the rows that also appear in the
otherDataFrame. Duplicate rows are eliminated.Example:
minus()andsubtract()are aliases ofexcept_().- Parameters:
other – The
DataFramethat contains the rows to exclude.