What I'm looking to do is create new columns that capture each word in a string. Example is here:
df
Col1 Col2
38 'My Name is John'
11 'Hello friend'
134 'My favorite city is New Orleans'
desired df:
Col1 Col2 Col3 Col4 Col5 Col6 Col7
38 'My' 'Name' 'is' 'John' NA NA
11 'Hello' 'friend' NA NA NA NA
134 'My' 'favorite' 'city' 'is' 'New' 'Orleans'
Does anybody have any ideas for this? Thanks!