mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-16 17:12:20 +08:00
fix(filter): replace invalid with in SeriesDFilter (#2051)
This commit is contained in:
@@ -168,7 +168,7 @@ class SeriesDFilter(BaseDFilter):
|
|||||||
for _ts, _bool in timestamp_series.items():
|
for _ts, _bool in timestamp_series.items():
|
||||||
# there is likely to be NAN when the filter series don't have the
|
# there is likely to be NAN when the filter series don't have the
|
||||||
# bool value, so we just change the NAN into False
|
# bool value, so we just change the NAN into False
|
||||||
if _bool == np.nan:
|
if np.isnan(_bool):
|
||||||
_bool = False
|
_bool = False
|
||||||
if _lbool is None:
|
if _lbool is None:
|
||||||
_cur_start = _ts
|
_cur_start = _ts
|
||||||
|
|||||||
Reference in New Issue
Block a user