Country/Region  Lat      Long
Afghanistan     33.00    65.00
Andorra         42.5063  1.5218
Albania         41.1522  20.1633
This is my dataset I want to create a new column with the following condition if Lat < 37 and > -37 return 0
df.loc[df.Lat < 37 and df.Lat > -37, 'newcol'] = 0
This is the code I'm trying to use for the condition but I am receiving a Value error
 
    