I have a column in a pandas data frame where one of the columns is an array of strings as shown below.
|column1 |
|:--------------------------------------------------------|
|['abc<t>def<t>ghi', 'jkl<t>mno<t>pqr'] |
|['abc<t>def<t>ghi', 'jkl<t>mno<t>pqr', 'def<t>pqr<t>jkl']|
|['ghi<t>jkl<t>pqr'] |
I need to split the column into an array of arrays such that the output looks like the table below
|column2 |
|:-------------------------------------------------------------------|
|[['abc', 'def', 'ghi'], ['jkl', 'mno', 'pqr']] |
|['abc', 'def', 'ghi'], ['jkl', 'mno', 'pqr'], ['def', 'pqr', 'jkl']]|
|[['ghi', 'jkl', 'pqr']] |
I have tried using split as shown below but this returns not a number for all values
dataset["column1"].str.split("<t>")