In [31]:
import folium
import pandas as pd
import requests
from xml.etree import ElementTree
import numpy as np
from folium.plugins import MarkerCluster


df = pd.read_csv(r'C:\Users\Adam.CASENEW\Economists Dropbox\Adam Åšmietanka\ESTAT LOT1\code\results\lat_lon.csv', sep=';', encoding='utf-8')
df['Name'] = ''
locations = df[['LAT', 'LON']]
locationlist = locations.values.tolist()

WAW_COORDINATES = (52.237049, 21.017532)
map = folium.Map(location=WAW_COORDINATES, zoom_start=12)


marker_cluster = MarkerCluster().add_to(map)


for point in range(0, len(locationlist)):
    folium.Marker(locationlist[point], popup=df['Name'][point]).add_to(marker_cluster)

    
map
Out[31]:
Make this Notebook Trusted to load map: File -> Trust Notebook
In [ ]: