model = linear_model.LogisticRegression()
model = model.fit(X_train, y_train)
df_coefs = pd.DataFrame(model.coef_[0], index=X.columns, columns=[
    'Coefficient'])
df_coefs
Scikit-learn train_test_split с индексами