ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
train.loc[(train[col] >1450) and (train[col] <1510) , ‘y’]
==>
train.loc[(train[col] >1450) & (train[col] <1510) , ‘y’]
train.loc[(train[col] >1450) and (train[col] <1510) , ‘y’]
==>
train.loc[(train[col] >1450) & (train[col] <1510) , ‘y’]