So, here is my dataframe
import pandas as pd cols = [\'Name\',\'Country\',\'Income\'] vals = [[\'Steve\',\'USA\',40000],[\'Matt\',\'UK\',40000],[\'John\',\'U
Or you can using isin directly
isin
x['New Column']='Not Europe' x.loc[x.Country.isin(europe),'New Column']='Europe' Out[612]: Name Country Income New Column 0 Steve USA 40000 Not Europe 1 Matt UK 40000 Europe 2 John USA 40000 Not Europe 3 Martin France 40000 Europe