.coef_ sklearn to variable code example
Example: pd.DataFrame(lm.coef_,X.columns,columns=['Coeff'])
pd.DataFrame({"Feature":X_train.columns.tolist(),"Coefficients":logreg.coef_[0]})
pd.DataFrame({"Feature":X_train.columns.tolist(),"Coefficients":logreg.coef_[0]})