title: create map from dataframe in spark scala
body: <p>I have a json string as below in a dataframe </p>
  
  <pre><code>  aaa  |  bbb |  ccc |ddd | eee          
   --------------------------------------
     100 | xxxx |  123 |yyy|2017
     100 | yyyy |  345 |zzz|2017
     200 | rrrr |  500 |qqq|2017
     300 | uuuu |  200 |ttt|2017
     200 | iiii |  500 |ooo|2017
  </code></pre>
  
  <p>I want to get the result as</p>
  
  <pre><code> {100,[{xxxx:{123,yyy}},{yyyy:{345,zzz}}],2017}
   {200,[{rrrr:{500,qqq}},{iiii:{500,ooo}}],2017}
   {300,[{uuuu:{200,ttt}}],2017}
  </code></pre>
  
  <p>Kindly help</p>