1

I have my dataset as below:

bill_id, prodname
101,['apples','oranges']
102,['bananas','oranges']
103,['apples']

I would like to convert this to:

101,apples
101,oranges
101,bananas
101,oranges
101,apples

Could anyone assist on how I could split these values into multiple rows for the same bill_id. Thanks

dark horse
  • 447
  • 1
  • 6
  • 17

0 Answers0