title: How to write a condition based on multiple values for a DataFrame in Spark
body: <p>I'm working on a Spark Application (using Scala) and I have a List which contains multiple values. I'd like to use this list in order to write a <code>where</code> clause for my DataFrame and select only a subset on tuples. For example, my List contains 'value1', 'value2', and 'value3'. and I would like to write something like this:</p>
  
  <pre><code>mydf.where($"col1" === "value1" || $"col1" === "value2" || $"col1" === "value3)
  </code></pre>
  
  <p>How can I do that programmatically cause the list contains many values?</p>