0

I have a dataframe of the form:

Sl No. | description1 | description2

1              dog;lion;tiger         sentence1
2              cat;pet;elephant       sentence2

I want the output like this:

Sl No. | description1 | description2

1              dog             sentence1
               lion
               tiger

2              cat             sentence2
               pet
               elephant

I tried the explode function but it did not give me the desired result.

0 Answers0