title: How to create map for each line based on the column using scala?
body: <p>I need to create map for each line based on the column using scala, for example,</p>
  
  <pre><code>sunny,hot,high,FALSE,no
  overcast,hot,high,FALSE,yes
  rainy,mild,high,FALSE,yes
  </code></pre>
  
  <p>I want output as,</p>
  
  <pre><code>RDD[List(
    Map(
      '0 -&gt; 'sunny,
      '1 -&gt; 'hot,
      '2 -&gt; 'high,
      '3 -&gt; 'false,
      '4 -&gt; 'no
    ),
    Map(
      '0 -&gt; 'overcast,
      '1 -&gt; 'hot,
      '2 -&gt; 'high,
      '3 -&gt; 'false,
      '4 -&gt; 'yes
    ),
    Map(
      '0 -&gt; 'rainy,
      '1 -&gt; 'mild,
      '2 -&gt; 'high,
      '3 -&gt; 'false,
      '4 -&gt; 'yes
    )
  )]
  </code></pre>
  
  <p>Here we consider each column, column number be the keys and column values be the values in the key-value pair.</p>