Problem Set 9 - Due Tue Apr 19 at 23:00
Reading
- Slides and notebooks from Lec 13 (List Comprehensions and Sorting), Lec 16 (Files and File Operations), Lec 17 (Directories), Lec 18 (Intro to Dictionaries), Lec 19 (Dictionary Accumulation Patterns), and Lec 20 (Working with Real-world Data).
- Problems and solutions from Lab 9 (Dictionaries) and Lab 10 (Dictionaries II + File Formats).
- Think Python, Chapter 11 covers dictionaries.
Tasks
The instructions for each task:
-
Task 1: Payroll Processing — Define functions that manipulate CSV files representing payroll data. For this problem, having a partner is optional but recommended.
- Task 2: Yelp Data — Process data from Yelp stored in dictionaries. For this problem, having a partner is optional but recommended.
About this Problem Set
This problem set will give you practice with JSON and CSV files, as will as more practice with dictionaries and lists in the context of real-world data.
If you want to find a partner to work with for this problem set, use this Google Sheet to do so.
Reminders
- Remember to download the starter code for each task from the Potluck server.
- You can also use the server to take a 24-hour extension on this problem set if you need to.
- You should check the rubric for each task before you submit.
Time Estimate
Our per-task estimate for this pset is 2-4 hours, and our estimate for total time spent across all tasks is 5–8 hours, plus up to an hour of reading.
How to turn in this Problem Set
-
Upload your tasks via the Potluck server by the deadline (Tue Apr 19 at 23:00).
- For payroll, each team member must submit
payroll.py
. - For yelp, each team member must submit
yelp.py
.
- For payroll, each team member must submit
-
Double-check the status of your submitted tasks, since there may be warnings.
-
Reminder: you can submit as many times as you like, and only the most recent submission will count for your grade.
-
If you run into trouble with the submissions server, contact Prof. Mawhorter, and include a copy of the file(s) you were trying to submit.
- After the deadline, check your score for each task and submit revisions if you need to.