Skip to content
Advertisement

extract key and values from nested jsons and put in a DataFrame

I have a json object that looks like this:

JavaScript

Is it possible to extract all dates (key) along with their respective “revenue” values and put them into a dataframe that looks likethis:

JavaScript

Advertisement

Answer

How about something like:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement