I have been sent a file. I have read it in as a dataframe which contains only one column and over a 1,000,000 rows. Each row is a mixture of numbers and text.
I tried the following line below.
data = data.str.split('/t',expand=True)
However I get the error below,
AttributeError: 'DataFrame' object has no attribute 'str'
I thought maybe it was because its of type object and not string. So tried the line below however that seems to have no effect.
data.astype('str')
How can I split this column?