def city(df):
    df['city'] = 'Chicago'
    for idx in df.index:
        if df['longitude'][idx] < -77 and df['longitude'][idx] > -78:
            df['city'][idx]='Richmond'
        if df['longitude'][idx] < -122 and df['longitude'][idx] > -123:
            df['city'][idx]='Oakland'
        if df['longitude'][idx] < -72 and df['longitude'][idx] > -73:
            df['city'][idx]='New Haven'
dataset/ETHPy150Open theusual/kaggle-seeclickfix-ensemble/Bryan/features.py/city/original