I'm trying to plot all public parks in my hometown, Santiago. So far I've gathered some relevant info from Google Places and stored it on a webpage for reference:
import pandas as pd
pdf=pd.read_html('http://www.quant.cl/static/HTML/parks.html',index_col=0)[0]
But the classic folium plotting loop fails for an unknown reason:
for did, drow in df.iterrows():
folium.Marker(location=(drow['lat'],drow['lng']),
popup='%s:%s' %(drow['name'],drow['formatted_address'])).add_to(fm)
fm.save('parques_%d.html' %did)
This generates 51 HTML files (as intended), but I can only visualize them up to parques_21.html, NOT parques_22.html. Could this be due to the accents in the 22nd record?
name O'Higgins Jardín Chino Park formatted_address Santiago, Santiago Metropolitan Region, Chile lat -33.4692 lng -70.6606 rating 4.3