How to plot coordinates on a map with geopandas python , matplotlib

preview_player
Показать описание


Комментарии
Автор

Does this have to be done using a specific countries.csv file because I attempted to do this with a xls file with columns "country_name", "lat" and "long" and it gave me the following error:

TypeError Traceback (most recent call last)
Cell In[71], line 1
----> 1 geometry = [point(xy) for xy in zip(-df['long'], df['lat'])]

Cell In[71], line 1, in (.0)
----> 1 geometry = [point(xy) for xy in zip(-df['long'], df['lat'])]

TypeError: 'tuple' object is not callable

Tried searching for this in stackoverflow but problems all seem to be different

hatcher_