john_toolbox.preprocessing.pandas_pipeline.PandasPipeline

class john_toolbox.preprocessing.pandas_pipeline.PandasPipeline(steps: List, target_name: str, verbose: bool = True)[source]

Bases: object

Wrapper for handling pandas in sklearn pipeline. Instead of returning a numpy array, it returns Pandas DataFrame with all columns name.

target_name

target column name

Type

str

columns

family name of the person

Type

List

fit_transform(df):

Fit all transformers and transforms DataFrame.

transform(df):

Transforms DataFrame with the fitted Pipeline.

Methods

fit_transform

transform