I want to delete every row that contains Copy 1 in column copy_nb:
I tried the simple and easy function of pandas Series.str.contains like so:
df=df[~df.copy_nb.str.contains("Copy 1", na=False)]
Unfortunately, it is deleting the columns that contain Copy 1, but also Copy 10, Copy 11, etc.
Here is a sample of the data frame I want to clean:
