I have following pandas DataFrame with (I guess?) a string as a nested JSON in column "bucket".
id name bucket
0 11324 Soaps {"page":{"url":"https://www.url.com", "color":"white"} ...}
0 11325 Cans {"page":{"url":"https://www.url.com", "color":"black"} ...}
0 11326 Boxes {"page":{"url":"https://www.url.com", "color":"red"} ...}
Here are the dtypes:
dtypes
id int64
name object
bucket object
I wonder how I could access the values in column "bucket", so that I can create a new column with the respective value:
id name bucket. color
0 11324 Soaps {"web":{"project":"https://www.url1.com", "color":"white"} ...} white
0 11325 Cans {"web":{"project":"https://www.url2.com", "color":"white"} ...} black
0 11326 Boxes {"web":{"project":"https://www.url3.com", "color":"white"} ...} red