9951 explained code solutions for 126 technologies


python-pandasHow to create dataframe from key-value JSON


import pandas as pd
json = '''[{"Phone":"ip5","Price":100},{"Phone":"ip6","Price":150}]'''
df = pd.read_json(json)ctrl + c
import pandas as pd

load Pandas module

.read_json(

will parse specified JSON string and create dataframe