Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
guipsamora
GitHub Repository: guipsamora/pandas_exercises
Path: blob/master/08_Creating_Series_and_DataFrames/Pokemon/Solutions.ipynb
547 views
Kernel: Python 2

Pokemon

Introduction:

This time you will create the data.

Step 1. Import the necessary libraries

Step 2. Create a data dictionary

Step 3. Assign it to a variable called pokemon

Step 4. Ops...it seems the DataFrame columns are in alphabetical order. Place the order of the columns as name, type, hp, evolution, pokedex

Step 5. Add another column called place, and insert what you have in mind.

Step 6. Present the type of each column

name object type object hp int64 evolution object pokedex object dtype: object

BONUS: Create your own question and answer it.