ChatGPT_Trading_Bot icon indicating copy to clipboard operation
ChatGPT_Trading_Bot copied to clipboard

im getting scalar error at df_summary

Open prakash888kp opened this issue 2 years ago • 2 comments

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 avatar May 16 '23 13:05 prakash888kp

@llSourcell please help me on this issue

prakash888kp avatar May 16 '23 13:05 prakash888kp

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)

husigma avatar Apr 15 '24 03:04 husigma