Categories
pandas python

Pandas: Delete Row if cell contains specific text

this code in pandas does not work. I want it to delete the row if the column contains any of the text/numbers provided Currently I can only get it to work if the cell matches the exact text being passed in my code .. as in it only deletes cells that say Fin* not Finance or Finly…

df2 = df[df.Team != 'Fin*']