O'Reilly logo
  • Som DUBEY thinks this is interesting:

>>> pd.DataFrame(zip(x_train.columns, np.transpose(model.coef_)))

From

Cover of Mastering Python for Data Science

Note

for python 3 - pd.DataFrame(list(zip(x_train.columns, np.transpose(model.coef_))))