I have a table with data for multiple continents. Now I want to delete every row where the continent isn't Europe or Africa. With:
df1 = df1.loc[(df1["region"] == "Europe")]
I get every row with "Europe" but I miss the "Africa" ones. Is there a way to include an "or"-operator? It doesn't work for me.