title: Converting multiple different columns to Map column with Spark Dataframe scala
body: <p>I have a data frame with column: <code>user, address1, address2, address3, phone1, phone2</code> and so on. 
  I want to convert this data frame to - <code>user, address, phone where address = Map("address1" -&gt; address1.value, "address2" -&gt; address2.value, "address3" -&gt; address3.value)</code></p>
  
  <p>I was able to convert the columns to map using:</p>
  
  <pre><code>val mapData = List("address1", "address2", "address3")
  df.map(_.getValuesMap[Any](mapData))
  </code></pre>
  
  <p>but I am not sure how to add this to my df.</p>
  
  <p>I am new to spark and scala and could really use some help here.</p>