title: Dictionary from CSV
body: <p>I work with data from spreadsheets a lot, and I typically start working with a function like this on that converts it into a dictionary of dictionaries:</p>
  
  <pre><code>def get_terms():
      terms = {}
      with open('Terms.csv') as infile:
          reader = csv.reader(infile, dialect='excel')
          headers = next(reader)
          for line in reader:
              term_id = line[0]
              terms[term_id] = {}
              for i, val in enumerate(line):
                  terms[term_id][headers[i]] = val
      return terms
  </code></pre>
  
  <p>Since I use this so often, I was just wondering if there is an easier way... What do you think?</p>