# importing the library
import pandas as pd
# Dataframe
df = pd.DataFrame({'team': ['Team 1', 'Team 1', 'Team 2',
'Team 3', 'Team 2', 'Team 3'],
'Subject': ['Math', 'Science', 'Science',
'Math', 'Science', 'Math'],
'points': [10, 8, 10, 6, 6, 5]})
# Dropping the rows with "Sci"
# identify partial string
discard = ["Sci"]
# drop rows that contain the partial string "Sci"
df[~df.Subject.str.contains('|'.join(discard))]
#display
df
df = df[df[“column_name”].str.contains(“string1|string2”)==False]
df[ ~df.column_name.str.contains(‘|’.join([“string”])) ]