title: How to filter column on values in list in pyspark?
body: <p>I have a dataframe rawdata on which i have to apply filter condition on column X with values CB,CI and CR. So I used the below code:</p>
  
  <pre><code>df = dfRawData.filter(col("X").between("CB","CI","CR"))
  </code></pre>
  
  <p>But I am getting the following error:</p>
  
  <blockquote>
    <p>between() takes exactly 3 arguments (4 given)</p>
  </blockquote>
  
  <p>Please let me know how I can resolve this issue.</p>