79412235

Date: 2025-02-04 15:52:38
Score: 1
Natty:
Report link

The answer above is RDD style. Here is the approach if you use Dataframe (in Scala):

// Using isin() function to check value in list of values
val listValues = Seq("Java","Scala")
df.filter(df("language").isin(listValues:_*)).show()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alexei Sosenkov