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.
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.
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.
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.
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.
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…