title: How to access the dictionary key values inside a list which is a column in a data frame
body: <p>I have a data frame with multiple columns like <strong>key_id, name, score, outcome &amp; category_reasons</strong>.
  The category_reasons columns holds value as below for each of the key_id. For some of the key_id it will have only one category &amp; value for other it will have multiple category &amp; value as below
  How can I create a new column such that it includes only the category values for the <strong>category</strong> field as a list in a new column<a href="https://i.stack.imgur.com/roeoM.png" rel="nofollow noreferrer">Sample Input/Output</a> category_reasons1.
  Please see the embedded like to view the Sample Input &amp; Output required.
  Could anyone help me on how to resolve this issue?</p>
  <pre><code>[{'category': 'A', 'value': ['12']},
   {'category': 'B', 'value': ['13a']},
   {'category': 'C', 'value': ['14c']}]
  </code></pre>
  <p><a href="https://i.stack.imgur.com/roeoM.png" rel="nofollow noreferrer">Sample Input/output</a></p>