text_html_output_1.png
from category_encoders.ordinal import OrdinalEncoder

from sklearn.linear_model import LogisticRegression

from sklearn.metrics import classification_report

from sklearn.pipeline import Pipeline

from sklearn.preprocessing import StandardScaler

from sklearn.pipeline import Pipeline
from category_encoders.ordinal import OrdinalEncoder
from sklearn.preprocessing import StandardScaler
from sklearn.linear_model import LogisticRegression
oe = OrdinalEncoder()
scaler = StandardScaler()
logit = LogisticRegression()
pipe = Pipeline([('Encoder', oe), ('Scaler', scaler), ('Logistic Regression', logit)])

from sklearn.metrics import classification_report
from sklearn.metrics import confusion_matrix
pipe.fit(X_train, y_train)
y_pred = pipe.predict(X_test)
print(classification_report(y_test, y_pred))