How to write a FunctionTransformer that outputs a DataFrame with a different number of columns than of the input DataFrame?

  Kiến thức lập trình

Is it possible to use FunctionTransformer to emulate OneHotEncoder? More generally, is it possible to write a FunctionTransformer such that the number of columns in the output DataFrame is different (either lower or higher) than the number of columns in the output DataFrame?

LEAVE A COMMENT