fit and transform
Also: fit_transform, replay
Machine learning basics
fit learns from data (a median, the list of categories, the weights); transform or predict applies what was learned. In a pipeline, fit runs on training rows only and the same learned steps are replayed on every new row.
ExampleThe imputer learns the median monthly charge from training customers and fills gaps in new customers with that same number.
