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

>>> pd.DataFrame(zip(b_data.columns,lm.coef_), columns = ['features', 'estimatedCoefficients'])

From

Cover of Mastering Python for Data Science

Note

for python 3 -

pd.DataFrame(list(zip(b_data.columns, lm.coef_)), columns = ['Features', 'estimatedCoefficients'])