title: How to read a csv file as Map for key value pair
body: <p>I have data in a csv file such as:</p>
  
  <pre><code>value,key
  A,Name
  B,Name
  C,Name
  24,Age
  25,Age
  20,Age
  M,Gender
  F,Gender
  </code></pre>
  
  <p>I would like to parse it to produce the following map:</p>
  
  <pre><code>Map(Name -&gt; List(A, B, C), Age -&gt; List(24,25,20), Gender -&gt; List(M,F))
  </code></pre>