Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Flatten a nested JSON

from flatten_json import flatten
dic_flattened = (flatten(d, '.') for d in test_json['result'])
df = pd.DataFrame(dic_flattened)

df.shape
(5, 160)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Flatten #nested #JSON
ADD COMMENT
Topic
Name
5+9 =