I have a dataframe that looks similiar to this:
data
0 [{'v': 10, 'n': 'metric2'}]
27 [{'v': 20, 'n': 'metric1'}, {'v': 56, 'n': 'metric3'}]
51 [{'v': 20, 'n': 'metric3'}]
89 [{'v': 10, 'n': 'metric2'}]
I'd like to transform it into something like this:
metric1 metric2 metric3
0 NaN 10 NaN
27 20 NaN 56
51 NaN NaN 20
89 NaN 10 NaN
I was wondering if this is possible?