0

Delimiter, when multiple instances of your delimiter exist

I have a DF column which stores character values. I want to create two additional columns (titled "version" and "country") which separates the character values based on a period (.) delimiter. However I only want to split based on the last delimiter as there might be multiple periods in the string. I have included code below with my example DF, there's a mix of variables with just one period and with two. https://code.sololearn.com/cI397Id8Ou0H/?ref=app

23rd Jun 2022, 3:55 PM
Anthony
Anthony - avatar
1 ответ
+ 1
You recently asked a similar question. I recommend you to play with the code and google for similar problems. https://code.sololearn.com/cTb6B5aKfZ35/?ref=app https://code.sololearn.com/ccu7mo85vMAk/?ref=app
23rd Jun 2022, 6:09 PM
Lisa
Lisa - avatar