Question: Question 1 . 4 . Create a DataFrame named legendary _ pokemon, indexed by 'type' and having one column, called 'num _ legendary' , that

Question 1.4. Create a DataFrame named legendary_pokemon, indexed by 'type' and
having one column, called 'num_legendary' , that contains the number of legendary
Pokmon of each 'type'. Only include 'type's with at least one legendary Pokmon of
that 'type'.
Hint: You will need to drop and rename columns. Instead of using . drop, you may want to
use . get with a list containing the name of a single column.
In [19]:
legendary_pokemon = bpd.read_csv('data/pokedex.csv').set_index('type')
legendary_pokemon
Question 1 . 4 . Create a DataFrame named

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!