Path: blob/master/08_Creating_Series_and_DataFrames/Pokemon/Exercises-with-solutions-and-code.ipynb
547 views
Kernel: Python 2
Pokemon
Introduction:
This time you will create the data.
Step 1. Import the necessary libraries
In [2]:
Step 2. Create a data dictionary
In [3]:
Step 3. Assign it to a variable called pokemon
In [5]:
Out[5]:
Step 4. Ops...it seems the DataFrame columns are in alphabetical order. Place the order of the columns as name, type, hp, evolution, pokedex
In [8]:
Out[8]:
Step 5. Add another column called place, and insert what you have in mind.
In [13]:
Out[13]:
Step 6. Present the type of each column
In [9]:
Out[9]:
name object
type object
hp int64
evolution object
pokedex object
dtype: object
BONUS: Create your own question and answer it.
In [ ]: