Skip to content
Snippets Groups Projects
Commit 722acb1a authored by Ashwin Maran's avatar Ashwin Maran
Browse files

add lab-p13 and p13

parent 0a94fab7
No related branches found
No related tags found
No related merge requests found
Showing
with 24988 additions and 0 deletions
# Lab-P13: SQL Databases and Plotting
In this lab, you'll learn to use SQL queries to extract data from a database. You will also write various plotting functions to visualize the extracted data.
-----------------------------
## Corrections/Clarifications
**Find any issues?** Please report to us:
- Ashwin Maran <amaran@wisc.edu>
## Learning Objectives:
## Learning Objectives
In this lab, you will practice how to:
* use SQL queries to extract data from a database,
* use different SQL keywords to organize data,
* write different plotting functions to visualize data and engage in data exploration.
------------------------------
## Note on Academic Misconduct
You may do these lab exercises only with your project partner; you are not allowed to start
working on Lab-P13 with one person, then do the project with a different partner. Now may be a
good time to review [our course policies](https://cs220.cs.wisc.edu/f23/syllabus.html).
**Important:** P12 and P13 are two parts of the same data analysis.
You **cannot** switch project partners between these two projects.
If you partnered up with someone for P12, you have to sustain that partnership until the end of P13.
------------------------------
## Segment 0: Setup
Unlike previous labs, you will **not** be working on an Otter notebook in this lab. Most importantly, this means that `public_tests.py` will **not** be provided to you. There will be `assert` statements in your `lab-p13.ipynb` notebook to guide you, but they will **not** be comprehensive. Instead, if you come across any syntactical or semantic errors, you will have to debug your code by yourself. Feel free to reach out to your TA or PM if you get stuck anywhere. and you will instead learn how to test your code by yourself.
You **will** however be provided with a `public_tests.py` for the project.
First, create a `lab-p13` directory and download the `lab-p13.ipynb` file into the directory.
## Segments 1-3: Web Requests, Caching, DataFrames and Scraping
For the remaining segments, detailed instructions are provided in `lab-p13.ipynb`. From the terminal, open a `jupyter notebook` session, open your `lab-p13.ipynb` and follow the instructions in `lab-p13.ipynb`.
## Project 13
You can now get started with [P13](https://git.doit.wisc.edu/cdis/cs/courses/cs220/cs220-f23-projects/-/tree/main/p13). **You may copy/paste any code created here in project P13**. Remember to only work on P13 with your partner from this point on. Have fun!
# Images
Images from lab-p13 are stored here.
lab-p13/images/bar_plot.jpg

27 KiB

lab-p13/images/horizontal_bar_plot.jpg

19.3 KiB

lab-p13/images/pie_plot.jpg

42 KiB

lab-p13/images/regression_line_plot.jpg

37.7 KiB

lab-p13/images/scatter_plot.jpg

32.6 KiB

Source diff could not be displayed: it is too large. Options to address this: view the blob.
# Project 13 (P13): World University Rankings
## Corrections and clarifications:
* None yet.
**Find any issues?** Report to us:
- Ashwin Maran <amaran@wisc.edu>
## Instructions:
This project will focus on **SQL**, and **Plotting**. To start, download [`p13.ipynb`](https://git.doit.wisc.edu/cdis/cs/courses/cs220/cs220-f23-projects/-/tree/main/p13/p13.ipynb), [`public_tests.py`](https://git.doit.wisc.edu/cdis/cs/courses/cs220/cs220-f23-projects/-/tree/main/p13/public_tests.py), and [`expected_dfs.html`](https://git.doit.wisc.edu/cdis/cs/courses/cs220/cs220-f23-projects/-/tree/main/p13/expected_dfs.html).
**Important Warning:** You must **not** manually download any of the other files. In particular, you are **not** allowed to manually download the file `rankings.json`. You **must** download this files using Python in your `p13.ipynb` notebook as a part of the project. Otherwise, your code may pass on **your computer**, but **fail** on the testing computer.
You will work on `p13.ipynb` and hand it in. You should follow the provided directions for each question. Questions have **specific** directions on what **to do** and what **not to do**.
------------------------------
## IMPORTANT Submission instructions:
- Review the [Grading Rubric](https://git.doit.wisc.edu/cdis/cs/courses/cs220/cs220-f23-projects/-/tree/main/p13/rubric.md), to ensure that you don't lose points during code review.
- Login to [Gradescope](https://www.gradescope.com/) and upload the zip file into the P13 assignment.
- If you completed the project with a **partner**, make sure to **add their name** by clicking "Add Group Member"
in Gradescope when uploading the P13 zip file.
<img src="images/add_group_member.png" width="400">
**Warning:** You will have to add your partner on Gradescope even if you have filled out this information in your `p13.ipynb` notebook.
- It is **your responsibility** to make sure that your project clears auto-grader tests on the Gradescope test system. Otter test results should be available within forty minutes after your submission (usually within ten minutes). **Ignore** the `-/100.00` that is displayed to the right. You should be able to see both PASS / FAIL results for the 20 test cases, which is accessible via Gradescope Dashboard (as in the image below):
<img src="images/gradescope.png" width="400">
- You can view your **final score** at the **end of the page**. If you pass all tests, then you will receive **full points** for the project. Otherwise, you can see your final score in the **summary** section of the test results (as in the image below):
<img src="images/summary.png" width="400">
If you want more details on why you lost points on a particular test, you can scroll up to find more details about the test.
This diff is collapsed.
# Images
Images from p13 are stored here.
p13/images/add_group_member.png

157 KiB

p13/images/gradescope.png

60.5 KiB

p13/images/q10.jpg

19.5 KiB

p13/images/q16.jpg

40.5 KiB

p13/images/q17.jpg

28.2 KiB

p13/images/q18.jpg

25.8 KiB

p13/images/q20.jpg

39.3 KiB

p13/images/q5.jpg

34.3 KiB

p13/images/q6.jpg

30.9 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment