I have a dataframe in which my data is in the type string - they're numbers but separated by commas. It looks something a bit like this.
>df
1 2 3
1 728, 706, 687 699, 679, 658 714, 695, 675
To work with this data, I need to transform these string values into numbers in individual rows. Something a bit like this.
>df_new
1 2 3
1 728 699 714
2 706 679 695
3 687 658 675
And I can't figure out how to do it for the life of me. Can anyone guide me on how to go about doing this?