llSourcell / ChatGPT_Trading_Bot

This is the code for the "ChatGPT Trading Bot" Video by Siraj Raval on Youtube
887 stars 485 forks source link

im getting scalar error at df_summary #8

Open prakash888kp opened 1 year ago

prakash888kp commented 1 year ago

If using all scalar values, you must pass an index

ValueError Traceback (most recent call last) in <cell line: 1>() ----> 1 df_summary = ensemble_agent.run_ensemble_strategy(A2C_model_kwargs, 2 PPO_model_kwargs, 3 DDPG_model_kwargs, 4 timesteps_dict)

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

prakash888kp commented 1 year ago

@llSourcell please help me on this issue

husigma commented 2 months ago

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)