Folium Map with Circle Markers from Pandas DataFrame

In [2]:
import pandas as pd
In [3]:
df = pd.read_pickle('geo.pickle')
In [4]:
df
Out[4]:
coordinates mstnr
0 [6.247624899112501, 51.04444314617253] 10000033
In [7]:
import folium 

locations = df.coordinates
locations
Out[7]:
0    [6.247624899112501, 51.04444314617253]
Name: coordinates, dtype: object
In [19]:
# Swapping coordinates
locations[0][0], locations[0][-1] =  locations[0][-1], locations[0][0]
locations
Out[19]:
0    [51.04444314617253, 6.247624899112501]
Name: coordinates, dtype: object
In [22]:
cm = folium.Map([50.962857, 7.0], zoom_start=8)
for location in locations:
    folium.CircleMarker(location=location, radius=200,color='darkblue',
        fill_color='darkblue').add_to(cm)
cm
Out[22]: