For my dataset im trying to get all the Latitude and longitude Coordinates so I am able to plot these in a map(folium map). Although the latitude column and longitude column in my dataset exists out of DD's and DMS's mixed up together.
My dataframe looks like this:
Latitude | Longitude | |
---|---|---|
0 | 36.922223 | -81.878056 |
1 | 30.757778 | -88.355555 |
2 | 047257N | 0109280W |
3 | 182724N | 0066554W |
I need DD (decimal degrees) instead of DMS (degrees minutes seconds). The first two lines are correct in DD, only the last two are not.
Anyone who knows how to convert these and apply it to the whole column?
The dataset im using can be found on kaggle: https://www.kaggle.com/datasets/khsamaha/aviation-accident-database-synopses
There are some formula's that are able to convert the decimal degrees to degrees minutes seconds but i cant apply them in to the columns.
Found formula link: How to convert degree minute second to degree decimal