I want to unpack a dataframe that contains variable amount of 'productIDs' nested in dictionaries in each column. Example table:
awardedProducts
0 []
1 [{'productID': 14306}]
2 []
3 []
4 []
5 []
6 []
7 [{'productID': 60974}, {'productID': 72961}]
8 [{'productID': 78818}, {'productID': 86765}]
9 [{'productID': 155707}]
10 [{'productID': 54405}, {'productID': 69562}, {...
I've tried iterating over the df with
df = []
for row, index in activeTitles.iterrows():
df.append(index[0])
I want to end up with a single column dataframe, or series with the productIDs all listed. EG:
productID
0 14306
1 60974
2 72961
3 78818
4 86765
5 155707
6 54405
7 69562