Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qlib/data/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def _toTimestamp(self, timestamp_series):
for _ts, _bool in timestamp_series.items():
# there is likely to be NAN when the filter series don't have the
# bool value, so we just change the NAN into False
if _bool == np.nan:
if np.isnan(_bool):
_bool = False
if _lbool is None:
_cur_start = _ts
Expand Down
Loading