Pca, 特徵篩選, 歷史回測, 投資組合.
'lte':'2022-11-24'} data = tejapi.get('TWN/EWISAMPLE', idx_id = "IX0002", start_date = mdate, paginate=True) data1 = data[data["end_date"] < "2022-11-24"] diff_data = pd.concat([data,data1,data1]).drop_duplicates(keep=False) coid = list(diff_data["coid"]) print(len(coid)) diff_data 0050報酬率載入 for i