logo

Crowdly

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' and indices given by 'FR', 'IT' and 'UK'. I want to construct a pandas dataframe with the only two columns 'country' and 'capital' and only for the indices 'FR' and 'IT'. Which command should I use?
100%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.essec.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!