pandas 如何删除指定内容那一行

我有一个csv档案,有一列为test,数据有pass和fail,但是我不想要fail这一行,就是有fail的这一行全部删除,如何做到

img


import pandas as pd

df = pd.DataFrame(data = {'height': [167.5, 170], 'weight': [73.8, 61], "BP": ['12681', '138/92']})
print(df)

df.drop(df[df['BP'].str.contains("/")].index, inplace = True)
print(df)

'''--result
   height  weight      BP
0   167.5    73.8   12681
1   170.0    61.0  138/92
   height  weight     BP
0   167.5    73.8  12681
'''

删除一列还是一行?