import pandas as pd
data = [['a',1],['b',2],['c',3]]
df = pd.DataFrame(data, columns = ['letter', 'number']
exclude_list = [2, 4, 6]
I want to change row 2 in df, where "number" == 2, to empty/nan. I want to do this by comparing the "number" column to the exclude list, and if there is a match, exclude that row.