text_plain_output_1.png
from imblearn.pipeline import Pipeline

from sklearn.impute import SimpleImputer

from sklearn.preprocessing import OneHotEncoder

from sklearn.preprocessing import StandardScaler

import numpy as np

cat_pipe = Pipeline([('imputer', SimpleImputer(strategy='most_frequent', missing_values=np.nan)), ('encoder', OneHotEncoder(handle_unknown='ignore', sparse=False)), ('scaler', StandardScaler())])
print(cat_pipe)