Pokémon
Lab setup
First, make sure you have completed the initial setup.
If you are part of a course
-
Open Terminal. Run the update command to make sure you have the latest code.
$ mwc update -
Move to this lab's directory.
$ cd ~/Desktop/making_with_code/mwc1/unit2/lab_pokemon
If you are working on your own
-
Move to your MWC directory.
$ cd ~/Desktop/making_with_code -
Get a copy of this lab's materials.
git clone https://git.makingwithcode.org/mwc/lab_pokemon.git
Note: this lab previously also carried nycsdf 9-12.CT.1 and 9-12.CT.2. Neither really fits: the lab uses data that's already been collected and provided (no CT.2 "collect and evaluate data from multiple sources"), and it's about descriptive statistics and visualization, not building a predictive numerical model (CT.1). Left 9-12.CT.3, which does fit -- refining and visualizing the same dataset (filter, group, plot) to answer different questions. CT.1 and CT.2 fit the argument project, later in this unit, better.
So far in this course, you have written all your Python programs in *.py files. This lab introduces a new
environment for writing Python, Jupyter notebooks. A notebook runs in a browser, and includes snippets of Python
code, along with text and images. This is an especially convenient format for data science, where you often
want to build an argument or tell a story using data, while showing your work. When you share a Jupyter notebook,
the reader can re-run all the code to see the results for herself.
💻
Open Jupyter notebook inside of your repository: jupyter lab. You should see a web
browser window open with a listing of all the files in your lab directory:

💻
Click on lab_pokemon.ipynb. The Pokémon lab will open in a new tab:
