Lasso Regression, Economic Growth, Macroeconomics, Alpha, Tejapi Data Analysis.
Table data = data.set_index('年月') df = {} for i in list1: p = data[data['代碼'] == i] p = p['數值'] df.setdefault(i, p) df = pd.concat(df, axis = 1) We firstly set “Year-Month” as table index. Then, read each type of data. Lastly, arrange new table that each columns record different Macro indexes. Step