how can i format a json object as a pandas dataframe?

The following should work:

df=pd.DataFrame(plotArray['data'], columns=plotArray['headers'])

Output:

>>>print(df)

   p_id  e_id  l_id  o_id
0     1     3     5     9

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top