I have a dataframe like this:
product_name price variations
Cream Deluxe Gold (615g) [ '130.00', '255.00', '500.00', '995.00', '8200.00'] [ '6 PIECES', '12 PIECES', '24 PIECES', '48 PIECES', '1 PALLET']
FastGas [ '140.00', '275.00', '535.00', '1050.00', '8400.00'] [ '6 PIECES', '12 PIECES', '24 PIECES', '48 PIECES', '1 PALLET']
I want to convert the price and variation columns to lists so I can explode them. My expected dataframe will look like this:
product_name price variations
Cream Deluxe Gold (615g) 130.00 6 PIECES
Cream Deluxe Gold (615g) 255.00 12 PIECES
I tried this code:
df = df.explode(['price','variations'])
and I'm getting my original dataframe and not my expected dataframe.