The Python Companion to Spatial Cluster Analysis with GeoDa

Author

Luc Anselin and Pedro Amaral

Published

July 22, 2025

Preface

This book is intended to be a companion to the treatment of spatial clustering methods in the two GeoDa books, An Introduction to Spatial Data Science with GeoDa - Volume 1, Exploring Spatial Data (Anselin 2024a), and An Introduction to Spatial Data Science with GeoDa - Volume 2, Clustering Spatial Data (Anselin 2024b). The goal is to illustrate as much as possible how the functionality of GeoDa can be replicated using Python, using the same empirical examples as in the books. Specifically, we take advantage of the functionality incorporated in the specialized pygeoda package as well as in the more traditional scikit-learn.

The book was formed by editing a series of Jupyter notebooks prepared for a course on Spatial Cluster Analysis, offered at the University of Chicago in winter quarter 2025. The original notebooks can be accessed from the course GitHub site.

A paperback version is now available from GeoDa Press through Amazon.