Logistic Regression, Machine Learning, Predictive Analytics, Data Science, Classification.
df['Churn'] X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.25, random_state=42) Normalizing Data scaler = StandardScaler() X_train = scaler.fit_transform(X_train) X_test = scaler.transform(X_test) Let’s build our model using LogisticRegression from the Scikit-learn package.