Share via


DataFrame.Intersect(DataFrame) Method

Definition

Returns a new DataFrame containing rows only in both this DataFrame and another DataFrame.

public Microsoft.Spark.Sql.DataFrame Intersect (Microsoft.Spark.Sql.DataFrame other);
member this.Intersect : Microsoft.Spark.Sql.DataFrame -> Microsoft.Spark.Sql.DataFrame
Public Function Intersect (other As DataFrame) As DataFrame

Parameters

other
DataFrame

Other DataFrame

Returns

DataFrame object

Remarks

This is equivalent to INTERSECT in SQL.

Applies to