title: How to add a list of values to a list of nested dictionaries?
body: <p>I would like to add each value of a list to each nested dictionary of a different list, with a new key name.</p>
  <p>List of dictionaries:</p>
  <pre><code>list_dicts = [{'id': 1, 'text': 'abc'}, {'id':2, 'text': 'def'}]
  </code></pre>
  <p>List:</p>
  <pre><code>list = ['en', 'nl']
  </code></pre>
  <p>Desired output:</p>
  <pre><code>list_dicts = [{'id': 1, 'text': 'abc', 'language': 'en'}, {{'id':2, 'text': 'def', 'language':'nl'}]
  </code></pre>
  <p><strong>Current method used:</strong>
  I transformed the <code>list_dicts</code> to a Pandas data frame, added a new column 'language' that represents the <code>list</code> values. Then, I transformed the Pandas data frame back to a list of dictionaries using <code>df.to_dict('records')</code>. There must be a more efficient way to loop through the list and add each value to a new assigned key in the list of dictionaries without needing to use Pandas at all. Any ideas ?</p>