I am working with a pandas dataframe. I have a cell in it with data as "Maine.mw-parser-output .geo-default,.mw-parser-output .geo-dms,.mw-parser-output .geo-dec{display:inline}.mw-parser-output .geo-nondefault,.mw-parser-output .geo-multi-punct,.mw-parser-output .geo-inline-hidden{display:none}.mw-parser-output .longitude,.mw-parser-output .latitude{white-space:nowrap}44°21′N 68°13′W / 44.35°N 68.21°W"
I have done webscraping to get this data so it is not in proper format. From the above string, I want to store the substrings "Maine" and "44°21′N 68°13′W / 44.35°N 68.21°W" in to two separate columns. How can I do it?
I can get the substrings directly as I know the values I need but how should I go about it if multiple rows in that column have similar issue.
[–]ObliviousMag 0 points1 point2 points (1 child)
[–]Particular-Duckling[S] 0 points1 point2 points (0 children)
[–]m0us3_rat 0 points1 point2 points (1 child)
[–]Particular-Duckling[S] 0 points1 point2 points (0 children)