make default type for close_price and date_pred np.nan
This commit is contained in:
parent
6ecd92de4a
commit
265795824b
@ -297,8 +297,8 @@ class FreqaiDataDrawer:
|
||||
# this logic carries users between version without needing to
|
||||
# change their identifier
|
||||
if 'close_price' not in df.columns:
|
||||
df['close_price'] = 0
|
||||
df['date_pred'] = 0
|
||||
df['close_price'] = np.nan
|
||||
df['date_pred'] = np.nan
|
||||
|
||||
df['close_price'].iloc[-1] = strat_df['close'].iloc[-1]
|
||||
df['date_pred'].iloc[-1] = strat_df['date'].iloc[-1]
|
||||
|
Loading…
Reference in New Issue
Block a user