Python

6 articles

Census API in Python: Pulling ACS Data With Validation Checks

A Python workflow for pulling ACS data from the Census Bureau API, with the validation checks that catch bad data before it reaches the analysis.

Feb 2026 · Methodology

How to Estimate Difference-in-Differences in Python

A statsmodels event-study workflow for difference-in-differences in Python, with the diagnostics that separate credible estimates from noise.

Feb 2026 · Methodology

How to Validate GTFS Feeds Before Routing Breaks

A Python workflow for catching the transit data problems that structural checks miss. Six validation layers from download fallbacks to multi-agency sanity checks.

Feb 2026 · Methodology

How to Build a Classifier When 94% Accuracy Means Nothing

A scikit-learn workflow for imbalanced classification, where 94% accuracy can mean nothing, and the evaluation metrics that actually matter for rare classes.

Feb 2026 · Methodology

How to Interpret a Classifier with SHAP Values

A Python workflow using SHAP values to explain what drives a fraud classifier's predictions, and what SHAP importance does and does not actually measure.

Feb 2026 · Methodology

Spatial Analysis with GeoPandas: From Joins to Autocorrelation

A spatial analysis workflow that starts with point-to-polygon joins and builds toward spatial weights, autocorrelation testing, and LISA cluster detection…

Feb 2026 · Methodology