I have dataset which contains multiple countries. How can I filter it so that it contains only specific countries?
For example now it contains UK, Belgium, France, ...etc
I would like to filter it so that it shows only France and Belgium.
So far I have tried that:
dataset = dataset.loc[dataset.Country == "France"].copy()
dataset.head()
and it works, because it filters only the data for France, but if I add Belgium
dataset = dataset.loc[dataset.Country == "France","Belgium"].copy()
dataset.head()
It doesn't work any more. I get the following error:
'the label [Belgium] is not in the [columns]'
Any help will be highly appreciated.