text_plain_output_1.png
from sklearn.linear_model import LogisticRegression

from sklearn.metrics import accuracy_score

from sklearn.linear_model import LogisticRegression
logreg = LogisticRegression()
logreg.fit(X_train, y_train)
y_predlogit = logreg.predict(X_test)
accuracylogit = accuracy_score(y_test, y_predlogit)
print('Accuracy:', round(accuracylogit * 100, 2), '%')