Hello everyone, thank you for taking time to read my post.
I am trying to create a Pandas dataframe and am having trouble with the determining the best approach. I have nested data as shown in the picture. The list "CleanProductCollection" is a list with 12 dictionaries. Each of the 12 dictionaries has two keys, one of which is a list called 'data'. These lists contain 50 dictionaries each.
It annoyingly nests further than that; however, I can work with the data in the dictionaries from the list 'data'. I am struggling to understand how to best extract all of the 50 dictionaries data from each of the lists. If I do the following -
df=pd.DataFrame(CleanProductCollection[0]['data'])
And then df.to_csv, it gives me a csv in an acceptable format; many of the cells have a lot of data, due to further nesting. How can I perform this for all dictionaries in all nested 'data' lists?