I'm trying to find a way to split (flatten) JSON row data into multiple columns in pandas.
I have a dataframe which looks like the following:
This is an example of what a row looks like:
I'm able to use the json_normalize function on a single row to achieve the following: (It's just shortened as an example)
However, when trying to apply the normalize function to the whole dataframe, I get 'str' object has no attribute 'values'
Are there any suggestions for how to go about doing this? Thanks
I apologise for the use of images, but I kept getting a message saying code is not formatted properly