I have a csv table with a column that contains the text from a chat log. Each text row follows the same format of the name of the person and time of the message (with an additional front and back space padding) followed by the message content. An example of a single row of the text column:
' Siri (3:15pm) Hello how can I help you? John Wayne (3:17pm) what day of the week is today Siri (3:18pm) it is Monday.'
I would like to transform this single string column, into multiple columns (number of columns would depend on number of messages), with one column for each individual message like below:
Siri (3:15pm) Hello how can I help you
John Wayne (3:17pm) what day of the week is today
Siri (3:18pm) it is Monday
How can I parse this text in a pandas dataframe column to separate the chat logs into individual message columns?