mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-02 12:30:45 +08:00
Fixing DailyBarReader for volume to 0 instead of NaN
This commit is contained in:
@@ -152,6 +152,8 @@ def load_crypto_market_data(trading_day=None, trading_days=None,
|
||||
data_frequency='daily')
|
||||
br.columns = ['close']
|
||||
br = br.pct_change(1).iloc[1:]
|
||||
br.loc[first_date]=0
|
||||
br=br.sort_index()
|
||||
|
||||
# Override first_date for treasury data since we have it for many more years
|
||||
# and is independent of crypto data
|
||||
|
||||
Reference in New Issue
Block a user