I been trying to get my code to work but I am having some trouble here. It would be great if someone could assist me
DF
Col1 Col2
2017-01-01 Coffee
2017-01-01 Muffin
2017-01-01 Donut
2017-01-01 Toast
2017-01-01
2017-01-01
How can I change Col2 so that every value that isn't Coffee or Muffin or null becomes 'Other'?
Col1 Col2
2017-01-01 Coffee
2017-01-01 Muffin
2017-01-01 Other
2017-01-01 Other
2017-01-01
2017-01-01
Edit:
df.loc[~df.Col2.isin(['Coffee','Muffin']), 'Col2'] = 'Other'
^this is where I am right now, but how can I add a null statement in the isin