9951 explained code solutions for 126 technologies


python-pandasHow to create dataframe from JSON


import pandas as pd
json = '''{"Phone":["ip5","ip6","ip8","sms","xi"],"Price":[204,304,404,405,305],"Color":["red","red","gray","black","red"]}'''
df = pd.read_json(json)ctrl + c
import pandas as pd

load Pandas module

.read_json(

will parse specified JSON string and create dataframe