How to convert a column of dtype object containing key and value pairs, to a new data frame

  dataframe, pandas, python
cc = dataframe.orders
cc.head()

0    {'S0': 50.806451612903224, 'S2': 37.8681626928...
Name: orders, dtype: object

I have a column name orders in my df and I want to create a new data frame from that of this structure

S0 S1 S2
50 37 33

Can someone suggest what should be the code for this in python

Source: Python Questions

LEAVE A COMMENT