I have a dataframe that looks like this:
ID Number Description Code Total Cost Store ID
A33 Ice cream; Chocolate 20 5
B44 Chips; Milk 15 6
C66 Cheese; Ice cream 10 6
V77 Pasta; Rice 8 8
I want to split the value of the Description Code into two, generating a new row based on the ";" symbol.
The output should be like this
ID Number Description Code Total Cost Store ID
A33 Ice cream 20 5
A33 Chocolate 20 5
B44 Chips 15 6
B44 Milk 15 6
C66 Cheese 10 6
C66 Ice cream 10 6
V77 Pasta 8 8
V77 Rice 8 8