I have a data frame with four fields. one of the field name is Status and i am trying to use a OR condition in .filter for a dataframe . I tried below queries but no luck.>
In spark/scala, it's pretty easy to filter with varargs.
val d = spark.read...//data contains column named matid val ids = Seq("BNBEL0608AH", "BNBEL00608H") val filtered = d.filter($"matid".isin(ids:_*))