I'm trying to drop rows which contain certain sub strings in a column. I want to drop all values that contain the sub strings 'Year', 'Monday', '/'
My dataframe
looks like:
col1
24/05/2020
May Year 2020
Monday
May 2020
The code I tried:
drop_values = ['Monday','Year', '/']
df = df[~df['Col1'].str.contains(drop_values)]
However I get the following error:
TypeError: unhashable type: 'list'