-
Notifications
You must be signed in to change notification settings - Fork 129
Open
Description
On the second example. Can't find a way around it.
what did I miss?
File "", line 187, in
reward = get_reward(new_state, time_step, action, xdata, signal, terminal_state, i)
File "", line 106, in get_reward
bt = twp.Backtest(pd.Series(data=[x[0] for x in xdata]), signal)
File "/anaconda3/lib/python3.6/site-packages/bt/backtest.py", line 128, in init
if data.columns.duplicated().any():
File "/anaconda3/lib/python3.6/site-packages/pandas/core/generic.py", line 3610, in getattr
return object.getattribute(self, name)
AttributeError: 'Series' object has no attribute 'columns'
Metadata
Metadata
Assignees
Labels
No labels