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

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

From

Cover of Mastering Python for Data Science

Note

for python 3,

print (pd.DataFrame(list(zip(sl_data.columns,lm.coef_)), columns = ['features', 'estimatedCoefficients']))