plot Latitude longitude points from dataframe on folium map - iPython
<p>I have a dataframe with lat/lon coordinates </p>

<pre><code>latlon
(51.249443914705175, -0.13878830247011467)
(51.249443914705175, -0.13878830247011467)
(51.249768239976866, -2.8610415615063034)
...
</code></pre>

<p>I would like to plot these on to a Folium map but I'm not sure of how to iterate through each of the rows.</p>

<p>any help would be appreciated, Thanks in advance!</p>

<p>This can solve your issue</p>

<pre><code>import folium
mapit = None
latlon = [ (51.249443914705175, -0.13878830247011467), (51.249443914705175, -0.13878830247011467), (51.249768239976866, -2.8610415615063034)]
for coord in latlon:
    mapit = folium.Map( location=[ coord[0], coord[1] ] )

mapit.save( 'map.html')
</code></pre>

<h3>Edit (using marker)</h3>

<pre><code>import folium
latlon = [ (51.249443914705175, -0.13878830247011467), (51.249443914705175, -0.13878830247011467), (51.249768239976866, -2.8610415615063034)]
mapit = folium.Map( location=[52.667989, -1.464582], zoom_start=6 )
for coord in latlon:
    folium.Marker( location=[ coord[0], coord[1] ], fill_color='#43d9de', radius=8 ).add_to( mapit )

mapit.save( 'map.html')
</code></pre>

<p>It'd be great if you use this reference: <a href="https://github.com/python-visualization/folium" rel="nofollow">https://github.com/python-visualization/folium</a></p>

python dataframe ipython folium