Getting Started with Pandas

The primary Data Science library we will be using this semester is pandas. This lab explores the basic usage of the pandas library and gets you ready for the Data Science challenges we will be beginning next week!

Source Branch: lab_pandas
Due Date: Committed and pushed to git before January 31, 2022 at 11:59pm

Step 1: Retrieve the lab using git

Using your command line, navigate to your stat107 repository (cd Desktop -> cd stat107 -> cd [NETID]) and fetch the notebook from our release repository by running the following two git commands:

git fetch release
git merge release/lab_pandas -m "Merging initial files"

ONLY IF you get an error related to unrelated histories, use:

git merge release/lab_pandas --allow-unrelated-histories -m "Merging initial files" 

Step 2: Download the Dataset

For this lab, you will be using the Course Catalog Dataset. Make sure to download the dataset as a CSV file and save it in your stat107 -> netid -> lab_pandas folder for us in the lab. (You will see details to do this in the lab if you are not certain on how to do it.)

Step 3: Open the notebook

Open the lab_pandas folder inside of Visual Studio Code by going into Visual Studio Code and choosing File -> Open Folder, then:

  • Open up the lab_pandas.ipynb notebook
  • Follow the instructions inside of the notebook

Submitting Your Work

When you have completed working, you should always submit your work (even if you're not quite finished). We will always grade the latest push you made before the due date (and ignore everything else) — submitting multiple times is okay and encouraged!

Inside of Visual Studio Code:

  • Click File -> Save All to ensure your notebook is saved.

Then, press Ctrl + ` to open a terminal inside of Visual Studio Code and run:

git add -A
git commit -m "submission (or any message here)"
git push

You can verify your submission was made by visiting the web interface to github: