AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Tutorials

There is a bug in 1-Introduction Stock_NeurIPS2018_SB3.ipynb

未關閉
#72 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Jupyter Notebook
星號
1.2k
分支
435
PR 合併指標
30 天內沒有已合併 PR

描述

![image](https://github.com/AI4Finance-Foundation/FinRL-Tutorials/assets/28076275/e340b06b-fc29-441d-a64f-189e12a8dca7)

MergeError: Passing 'suffixes' which cause duplicate columns {'account_value_x'} is not allowed.

please change to this code:
result = pd.merge(df_result_a2c, df_result_ddpg, left_index=True, right_index=True)
result = pd.merge(result, df_result_td3, left_index=True, right_index=True)
result = pd.merge(result, df_result_ppo, left_index=True, right_index=True, suffixes=('_1', '_2'))
result = pd.merge(result, df_result_sac, left_index=True, right_index=True)
result = pd.merge(result, MVO_result, left_index=True, right_index=True, suffixes=('_3', '_4'))
result = pd.merge(result, df_dji, left_index=True, right_index=True, suffixes=('_5', '_6'))
result.columns = ['a2c', 'ddpg', 'td3', 'ppo', 'sac', 'mean var', 'dji']

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。