title: Use list and replace a pyspark column
body: <p>Suppose I have a list new_id_acc = [6,8,1,2,4] and I have PySpark DataFrame
  like </p>
  
  <pre><code>id_acc  |  name  | 
    10    |  ABC   |
    20    |  XYZ   |
    21    |  KBC   |
    34    |  RAH   |
    19    |  SPD   |
  </code></pre>
  
  <p>I want to replace the pyspark column id_acc with new_id_acc value how can I achieve and do this.
  I tried and found that lit() can be used but for a constant
  value but didn't find anything how to do for list.</p>
  
  <p>After replacement I want my PySpark Dataframe to look like this</p>
  
  <pre><code>id_acc  |  name  | 
     6    |  ABC   |
     8    |  XYZ   |
     1    |  KBC   |
     2    |  RAH   |
     4    |  SPD   |
  </code></pre>