text_plain_output_1.png
from sklearn.linear_model import LogisticRegression

from sklearn.metrics import confusion_matrix,classification_report

y_train.value_counts()

lr = LogisticRegression()
lr.fit(X_train, y_train)

predictions = lr.predict(X_valid)

confusion_matrix(y_valid, predictions)