I have a dataframe df, which contains below data:
**customers** **product** **Val_id**
1 A 1
2 B X
3 C
4 D Z
I have successfully filtered for data where column val_id is blank
df.where(col("val_id").isin(""))
But I am not able to figure out a way to filter data where column val_id is not blank, i tried something like below, but did not work for me:
df.where(col("val_id").isnotin(""))
Can anyone please help me to achieve it using Spark Scala.