Skip to content
luis@data:~$

projects / pueblos-magicos-eda

Mexican Pueblos Mágicos, exploratory analysis

An exploratory data analysis of Mexico's Pueblos Mágicos: population, distribution by state and a K-Means clustering of their locations.

date
stack
Python, pandas, scikit-learn, Kaggle
notebook
www.kaggle.com/code/luisresendiz/mexican-pueblos-magicos-exploratory-data-analysis

Pueblos Mágicos is the Mexican government’s program that names towns with special cultural or historical value. This notebook explores the dataset of those towns.

Questions it answers

  • Which ten Pueblos Mágicos have the largest and the smallest population?
  • Which states have the most of them?
  • Where are they located on a map?
  • How do they group by location? A K-Means clustering splits the towns into geographic clusters.