title: Scala How to convert my df data in to list of items
body: <p>I have the following DF,</p>
  
  <pre><code>+-----+--------------+----------+
  |level|var1          |var2      |
  +-----+--------------+----------+
  |1    |[id, id1]     |[name]    |
  |2    |[add1]        |[city1]   |
  |3    |[add2]        |[city2]   |
  +-----+--------------+----------+
  </code></pre>
  
  <p>and I would like to store it as below,</p>
  
  <pre><code>val first = List(List("id","id1"), List("add1"), List("add2"))
  val second = List(List("name"), List("city1"), List("city2"))
  </code></pre>
  
  <p>The logic is all the columns values should come as list of items,Please suggest me how can i achieve this.</p>