The geopy package provides a unified access to many geocoding API providers, as well as a wrapper to geocode addresses without explicitly managing HTTP requests.
Most geocoding API providers require an account and/or an API key to associate the API calls to a particular account. Nominatim is a provider that provides a few API calls for free.
Location(Flatiron Building, 175, 5th Avenue, Flatiron District, Manhattan Community Board 5, Manhattan, New York County, City of New York, New York, 10010, United States, (40.741059199999995, -73.98964162240998, 0.0))
Example: getting latitude, longitude information for penguins’ islands
import seaborn as snspenguins = sns.load_dataset('penguins')penguins.island.unique()