# logistic regression in classification model using python

Nov 04, 2020 · Here we are using the GLM (Generalized Linear Models) method from the statsmodels.api library. Binomial in the family argument tells the statsmodels that it needs to fit a logit curve to binomial data (i.e., the target variable will have only two values, in this case, ‘Churn’ and ‘Non-Churn’)