Pca, 特徵篩選, 歷史回測, 投資組合.
in range(0,len(coid)): print(i) if i == 0: df = tejapi.get('TWN/EWPRCD2', coid = coid[i], mdate = {'gte':'2013-01-01', 'lte':'2022-11-24'}, paginate=True) df.set_index(df["mdate"],inplace=True) Df = pd.DataFrame({coid[i]:df["roia"]}) else: df = tejapi.get('TWN/EWPRCD2', coid = coid[i], mdate =