Условие LOC на первых 3 столбцах DataFrame
df_bachelor = dfGraduates.iloc[:, :3].loc[dfGraduates["Queen's Degree"] == 'B.A.Sc.']
Chunxiao Wang
df_bachelor = dfGraduates.iloc[:, :3].loc[dfGraduates["Queen's Degree"] == 'B.A.Sc.']