title: Convert a list of dictionaries to a dictionary
body: <p>I have a list of dictionaries in Python</p>
  
  <pre><code>[
  {'id':'1', 'name': 'a', 'year': '1990'},
  {'id':'2', 'name': 'b', 'year': '1991'},
  {'id':'3', 'name': 'c', 'year': '1992'},
  {'id':'4', 'name': 'd', 'year': '1993'},
  ]
  </code></pre>
  
  <p>I want to turn this list into a dictionary of dictionaries with the key being the value of <code>name</code>.  Note here different items in the list have different values of <code>name</code>.</p>
  
  <pre><code>{
  'a': {'id':'1', 'year': '1990'},
  'b': {'id':'2', 'year': '1990'},
  'c': {'id':'3', 'year': '1990'},
  'd': {'id':'4', 'year': '1990'}
  }
  </code></pre>
  
  <p>What is the best way to achieve this?  Thanks.</p>
  
  <p>This is similar to <a href="https://stackoverflow.com/questions/9481870/python-create-dictionary-from-list-of-dictionaries">Python - create dictionary from list of dictionaries</a>, but different.</p>