Unlocking Hidden Patterns

Now, it’s time to reap the fruits of our hard work. Let’s visualize the cluster results on a map to see if we can identify any patterns. These patterns could be beneficial for the salesperson to determine the route.

Creating interactive maps with folium

The folium python library can be used to create interactive maps with layers and markers. The ability to use HTML web pages and visualizations as markers on the map is one of the greatest strengths of folium and opens up endless possibilities for making the maps more interactive and informative. Therefore, it’s a useful addition to plotly.

First, we plot the first five stores using folium:

Get hands-on with 1200+ tech skills courses.