1. Learn
  2. /
  3. Courses
  4. /
  5. Visualizing Geospatial Data in Python

Connected

Exercise

Adding markers for the public art

Now that you have added the polygon for the Urban Residents neighborhood to your folium street map, it's time to add the locations of the art within the neighborhood. You can do that by creating folium markers. Each marker needs a location assigned. Use iterrows() to loop through the data to grab the values you need.

Instructions

100 XP
  • First take a look at the tuple returned by iterrows() by printing the first and second values.
  • Assign the second value of the iterrows() tuple to row_values. Create a location formatted for folium, use it to build a marker, and add it to the downtown_map.
  • Display the map.