df = pd.DataFrame(dict(A=[0,1,2,3], C=["Ghana","Nigeria","Africa","South Africa"]))
df[~df.C.str.contains("Africa")]
I want to delete the row with with only "Africa" without deleting the row with "South Africa"
df = pd.DataFrame(dict(A=[0,1,2,3], C=["Ghana","Nigeria","Africa","South Africa"]))
df[~df.C.str.contains("Africa")]
I want to delete the row with with only "Africa" without deleting the row with "South Africa"