tran_view = tran[tran['date']>='1998-1-1'][tran['date']<='1998-6-30'] 如果是判断是否在一个数字区间内,用.isin(range( ))