'Append JSON (or Dict ) to Dataframe

I want to append to an empty Dataframe a JSON format as a value inside a column like the following way :

In [1]: df
Out[1]: 
         id     color_probility    
    0   145     { "blue":0.19, "red":0.31, "green":0.5 }
    1   147     { "blue":0.60, "red":0.20, "green":20 }
    2   287     { "blue":0.15, "red":0.70, "green":0.15 }
    3   678     { "blue":0.05, "red":0.55, "green":0.40 }

How can I achieve this ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source