This week's assignment will be broken into two parts:
Follow the instructions in the course materials repository for downloading and installing Anaconda locally and creating a new Python environment.
The course materials also includes notes on getting started with Anaconda. The official Anaconda User Guide is recommended reading.
The course materials repository also includes notes on:
Assuming you've successfully installed Python locally, now you can launch a Jupyter notebook with the musa-620 environment. Notes on this
process can be found here. For additional help running the notebook, see the tutorial from the Jupyter documentation.
This will create the local Jupyter server. If it does not open in a browser, copy the link that is output by the command into your favorite browser. Once the server is running, you can create a new notebook and get started!
The notebook will execute code from the current working directory (the directory that the notebook was launched from). If using relative file paths to load the data, the path should be relative to this working directory. From within the Jupyter notebook, you can find out the current working directory by running the following command in a cell:
pwdUse a Jupyter notebook to find the Philadelphia ZIP code with the largest average annual ZHVI value, for each year in the data set. The Zillow data is available for download in this repository: data/Zip_Zhvi_AllHomes.csv.
The Jupyter notebook should use pandas to load the data and analyze it. The following steps should be followed:
- Load the ZHVI data for each ZIP code, selecting only Philadelphia ZIP codes.
- Calculate the annual average ZHVI for each ZIP code in Philadelphia and each year.
- Identify the ZIP code with the maximum value for each year.
The final result should be the year and the ZIP code with the maximum value.
You can submit your assignment through Github. For each assignment, I will provide a GitHub link that can be used to create a new repostiory. Each student will have their own private repository on GitHub where the assignment can be submitted. Only the student and instructors will have access to the private repository.
The invitation link for this week is:
https://classroom.github.com/a/DrfpaX86
If you do not have a GitHub account yet, you should be prompted to make an account. After clicking on this link, GitHub will create a new private repo with permissions such that only you and the instructors can view the commits.
The assignment should be added to this GitHub repository before the deadline. You can add files to the repository through the web (github.com) interface or using the command line locally on your machine.
Below are some references if you need help:
Important: files should be committed to the newly created private repository (after following the above link) and not to your forked version of the assignment-1 repository.
Your Jupyter notebook should be submitted to your private repository by the deadline, 5pm on 9/5.