title: python csv to dictionary using csv or pandas module
body: <p>I am using Python's <code>csv.DictReader</code> to read in values from a CSV file to create a dictionary where keys are first row or headers in the CSV and other rows are values. It works perfectly as expected and I am able to get a dictionary, but I only want certain keys to be in the dictionary rather than all of the column values. What is the best way to do this? I tried using <a href="https://docs.python.org/2/library/csv.html#csv.reader" rel="noreferrer"><code>csv.reader</code></a> but I don't think it has this functionality. Maybe this can be achieved using pandas?</p>
  
  <p>Here is the code I was using with CSV module where <code>Fieldnames</code> was the keys that I wanted to retain in my dict. I realized it isn't used for what I described above.</p>
  
  <pre><code>import csv
  with open(target_path+target_file) as csvfile:
      reader = csv.DictReader(csvfile,fieldnames=Fieldnames)
      for i in reader:
          print i
  </code></pre>