def hours(df):
    #-----create hour only, and ~6 hour ranges----#
    df['created_time_hrs'] = [str(x.hour) for x in df['created_time']]
    df['created_time_range'] = '1800-0000'
    for idx in df.index:
        if df['created_time'][idx].hour in [0,1,2,3,4]:
            df['created_time_range'][idx] = '0000-0500'
        if df['created_time'][idx].hour in [5,6,7,8,9,10,11]:
            df['created_time_range'][idx] = '0500-1200'
        if [12,13,14,15,16,17] in df['created_time'][idx].hour:
            df['created_time_range'][idx] = '1200-1800'
dataset/ETHPy150Open theusual/kaggle-seeclickfix-ensemble/Bryan/features.py/hours/swapped operands of `in`