I have a pandas dataframe named 'brics' with columns names given by 'country',...
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
I have a pandas dataframe named 'brics' with columns names given by 'country', 'capital', 'area' and 'population'. I want to construct a pandas dataframe with the only two columns 'country' and 'capital'. Which command should I use?