How to find longitude and latitude for a list of Regions or Country using Python
Geopy is a Python 2 and 3 client for several popular geocoding web services. Geocoding is the process to identify geographic coordinates like latitude and longitude of a given city/country/address. This is very useful during marking position on the map in data visualization. We use
geopy.geocoder in the below code to fetch the results
This module does not come built-in with Python. To install it type the below command in the terminal.
pip install geopy
Example: Let’s create a pandas dataframe containing a list of regions or countries.
Now Let’s find the latitude and longitude of the following regions or countries.
Showing the output produced as dataframe.