I have a dataframe that looks like
import pandas as pd
df = pd.DataFrame({'Subject1': ['Math', 'BioScience', 'PhysicalScience',
'Sociology', 'Psychology', 'Arts'],
'Subject2': ['BioScience', 'PhysicalScience', 'Sociology',
'Arts', 'Arts', 'PhysicalScience'],
'points': [10, 8, 10, 6, 6, 5]})
I would like to delete the rows where Subject1
or Subject2
column contains the string "Science".