mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-07 15:27:05 +08:00
BUG: support case there are more sids requested than available in a blaze dataset
This commit is contained in:
@@ -845,6 +845,13 @@ class BlazeLoader(dict):
|
||||
).unstack()
|
||||
|
||||
dense_output = sparse_output.reindex(dates, method='ffill')
|
||||
cols = dense_output.columns
|
||||
dense_output = dense_output.reindex(
|
||||
columns=pd.MultiIndex.from_product(
|
||||
(cols.levels[0], assets),
|
||||
names=cols.names,
|
||||
),
|
||||
)
|
||||
|
||||
adjustments_from_deltas = adjustments_from_deltas_with_sids
|
||||
column_view = identity
|
||||
|
||||
Reference in New Issue
Block a user