mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-07 09:18:33 +08:00
BUG: Initial digest frame was set with object dtype. Older verison of
numpy can error when expecting numeric dtypes and not np.array([1,2,3], dtype=object)
This commit is contained in:
@@ -648,7 +648,7 @@ class HistoryContainer(object):
|
||||
if bar_count == 1:
|
||||
# slicing with [1 - bar_count:] doesn't work when bar_count == 1,
|
||||
# so special-casing this.
|
||||
res = pd.DataFrame(index=[], columns=self.sids)
|
||||
res = pd.DataFrame(index=[], columns=self.sids, dtype=float)
|
||||
return res.values, res.index
|
||||
|
||||
field = history_spec.field
|
||||
|
||||
Reference in New Issue
Block a user