I am new to Pandas and I am trying to drop all rows that contain some respective countries (Albania, Uzbekistan, Brazil) from the Column country. However, the way I figured it out to do is one by one, as below:
indexCountry = df[df['country'] == 'Albania'].index
df.drop(indexCountry, inplace = True)
indexCountry = df[df['country'] == 'Uzbekistan'].index
df.drop(indexCountry, inplace = True)
indexCountry = df[df['country'] == 'Brazil'].index
df.drop(indexCountry, inplace = True)
Is there a way to do this in one single code line, instead of having to do one for every country?