I have a pandas df column with a list of dictionaries for each each company name. Like below:
company | growth_scores
comp xyz | [{u'score': u'198', u'recorded_at': u'2016-09},{u'score': u'190', u'recorded_at': u'2016-08}
I understand how to extract the keys and I'm familiar with the pd.apply method but I can't seem to piece together anything that will go row-by-row and perform the calculation. Ultimately, I need to perform a calculation and store the result in a new column, for each company.
The output should look like this:
company | growth_score_diff
comp xyz | 10%
Would love some guidance here!