I have a dataframe which looks like this:
| name | sex |
|---|---|
| ab | f |
| ab | m |
| ab | f |
| bc | f |
| bc | f |
| bc | m |
I want to convert the observations of the column 'sex' as string. The outcome should look like:
| name | seq |
|---|---|
| ab | fmf |
| bc | ffm |
Any help is highly appreciated! Thanks in advance :)