pd.DataFrame(lm.coef_,X.columns,columns=['Coeff']) 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]})