pyspark.sql.DataFrame.subtract

DataFrame.subtract(other)[source]

Return a new DataFrame containing rows in this DataFrame but not in another DataFrame.

This is equivalent to EXCEPT DISTINCT in SQL.

New in version 1.3.