diff --git a/jaqs/data/dataservice.py b/jaqs/data/dataservice.py index dcf37bf..026b24e 100644 --- a/jaqs/data/dataservice.py +++ b/jaqs/data/dataservice.py @@ -845,7 +845,7 @@ def str2int(s): for sec, df in gp: mask = np.zeros_like(dates, dtype=np.integer) for idx, row in df.iterrows(): - bool_index = np.logical_and(dates > row['in_date'], dates < row['out_date']) + bool_index = np.logical_and(dates >= row['in_date'], dates <= row['out_date']) mask[bool_index] = 1 dic[sec] = mask