I have a dataframe which contains data that is entered without whitespace between words, i.e VolvoSaabVauxhall = Volvo Saab Vauxhall. I want to separate each word and insert new rows for each word that contain same data as row they originated from -
type year colour
Mazda 1990 Cyan
VolvoSaabVauxhall 2000 Red
Lada 1980 Black
becomes
type year colour
Mazda 1990 Cyan
Volvo 2000 Red
Saab 2000 Red
Vauxhall 2000 Red
Lada 1980 Black
what is the best way to achieve this without using iteration?