I tried several times and it does not work. How can I split sentences contained in a cell into different rows maintaining the rest of the values?
Example: Dataframe df has 20 columns. Row j, Column i contains some comments which are separated by " | " I want to have a new dataframe df2 which increases the amount of rows depending the number of sentences. This means, if cell j,i has Sentence A | Sentence B
Row j, Column i has Sentence A Row j+1, Column i has Sentence B Columns 1 to i-1 and i+1 to 20 have the same value in rows j and j+1.
I do not know if this has an easy solution.
Thank you very much.