iterrows
-
Hello,
I am trying to project numerous rows of data as markers with folium, though only one row of data is being displayed. Does anyone know how to display all rows? I am new to this. I can provide a Jupyter Notebook if that helps. Below is a section of the data.
hobo_map=folium.Map(location=[40.738, -73.98],
zoom_start=12,
max_zoom=17,
detect_retina=True,
tiles='http://maps.nypl.org/warper/maps/tile/16200/{z}/{x}/{y}.png',
attr='Manhattan. 1958. New York Public Library')for index, row in hobo_data.iterrows():
popup_text="{}<br> Address: {}<br> Capacity: {}<br> Priority: {}<br> Aid: {}"
popup_text=popup_text.format(row["Name"],row["Address"],row["Capacity"],row["Priority"],row["Aid"])folium.Marker(location=(row["Latitude"], row["Longitude"]),popup=popup_text).add_to(hobo_map)
hobo_map
-
@simontye I wish I could help with this but can't. @Graeme @anges244 @juand4v can any of us help him with this?
-
Hi @simontye and @kelechi unfortunately I cannot help as I my Python experience is extremely limited and never used or heard of folium... Sorry!