title: read the second row of a csv file into a dict
body: <p>i have a csv file that looks something like this:</p>
  
  <pre><code>username,permission,type,avtar
  user1,op,member,goldilock
  user2,guest
  user3,guest
  </code></pre>
  
  <p>The 'type' and 'avtar' data is only in the second row (user1), for user2 and user3 this will be empty.
  What i am trying to achieve is get the type and avtar data from the second row and put that into a dict that would look like this:</p>
  
  <pre><code>{'type': 'member', 'avtar': 'goldilock'}
  </code></pre>
  
  <p>I tried to use the built-in csv.DictReader, i do not want to use panda for this. I can get all the contents of the csv file into a dict using the above module, but i do not knw how i can select a specific row and put them into a dict.</p>
  
  <p>Following is the code that i have so far, is it possible to use DictReader module to achieve this at all? or there is another approach i should adopt?</p>
  
  <pre><code>import csv 
  inputFile="test.csv"
  with open(inputFile, "rb") as data:
      reader = csv.DictReader(data)
      for row in reader:
          print row['type']
  </code></pre>