from sklearn.linear_model import LogisticRegression from io import StringIO import statsmodels.api as sm TESTDATA = StringIO("""a;b;c 1;8;5 0;5;4 0;4