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

Exercise

Create a folium location from the urban centroid

In order to construct a folium map of the Urban Residents neighborhood, you need to build a coordinate pair location that is formatted for folium.

Instructions

100 XP
  • Print the head of urban_polygon.
  • Store the first occurrence of center as urban_center and print urban_center. This has been done for you.
  • Create an array from urban_center that reverses the order of longitude and latitude. Call this urban_location.
  • Print urban_location. This has been done for you.