ChatGPT_Trading_Bot
ChatGPT_Trading_Bot copied to clipboard
im getting scalar error at df_summary
If using all scalar values, you must pass an index
ValueError Traceback (most recent call last)
5 frames /usr/local/lib/python3.10/dist-packages/pandas/core/internals/construction.py in _extract_index(data) 654 655 if not indexes and not raw_lengths: --> 656 raise ValueError("If using all scalar values, you must pass an index") 657 658 elif have_series:
ValueError: If using all scalar values, you must pass an index
@llSourcell please help me on this issue
So I used below to get over this error
df_summary = ensemble_agent.run_ensemble_strategy(A2C_model_kwargs, PPO_model_kwargs, DDPG_model_kwargs=DDPG_model_kwargs, TD3_model_kwargs=None, SAC_model_kwargs = None, timesteps_dict=timesteps_dict)