Skip to main content
100%

Created on Cognitive Class Labs

✓ Published0🌍 Public
DDAVINDER
Last edited Jun 3, 2019
Created on Jun 3, 2019

This example shows the process of segmenting and clustering neighborhoods in New York City. It maps each neighborhood to its latitude and longitude coordinates, then uses the Foursquare API to fetch common venue categories per neighborhood. The code applies k-means clustering to group neighborhoods into clusters and visualizes the results on an interactive Folium map, with each cluster color-coded. The underlying neighborhood dataset is downloaded from a public web source, and the map rendering relies on Folium’s mapping library.

AI-generated description

Similar vizzes