Feature Engineering with Hamilton: Write Once Run Everywhere
summary
Hamilton is a Python framework that turns each feature into a single function and uses a driver to execute DAGs so the same code runs in both batch (pandas / SQL) and streaming (single-record, API join, stored scalers) contexts with only about four implementation swaps for ~30 features. It demonstrates map/aggregation/join patterns, integrates with Feast and Pandera for validation, supports unit testing, and uses a config do_when decorator to swap implementations while already showing 110,000+ downloads.
AI-written summary · about
