Applying a scikit-learn’s transformer on your DataFrame will return a NumPy array. If you want to return a pandas DataFrame instead, use SklearnTransformerWrapper along with your scikit-learn’s transformer.
SklearnTransformerWrapper
This is a method of feature-engine.
My previous tips on tools for feature engineer.
Combine SQL and Python Efficiently with Ibis
Formulaic: Write Clear Feature Engineering Code
Simplify Tabular Dataset Preparation with TabularPandas
Your email address will not be published. Required fields are marked *
Name
Email
Website
Save my name, email, and website in this browser for the next time I comment.
Δ