Lasso Regression, Economic Growth, Macroeconomics, Alpha, Tejapi Data Analysis.
= lasso.fit(df_train,growth_train) # Display variables that coefficient is larger than 0 lasso_coefs = pd.Series(dict(zip(list(df_valid), mdl.coef_))) coefs = pd.DataFrame(dict(Coefficient=lasso_coefs)) coid = coefs[coefs['Coefficient'] > 0].index # Match the Code of selected variables to find