Unit 0 Core Task 2: Testing, Testing, 1,2,3
Canvas: U0: Core Task 2 — Testing, Testing, 1,2,3 Type: Core Task (1 pt, complete/incomplete)
Copilot: Allowed for syntax lookup; disallow for answer generation.
Background
Each assignment will have a Background section that provides context for the project. Make sure you read the background carefully to see the big picture needs and purpose of the project.
Python and VS Code are tools commonly used in the field of data science. During our first two days of class we will primarily be installing software, libraries, extensions, etc. Completing Project 0 will set you up for success the rest of the semester. Since this project is strictly about software installation, there is no contextual background for this project.
Data
This project will use the Palmer Penguins data set. This dataset is embedded in a library we will load, so there is no need to read it in from the link below. But in future assignments, data for the assignment can be found in this section.
URL: penguins data
Readings
Please do the assigned reading before coming to class!
Many people have different levels of experience with Python, VS Code, and programming in general. That is why there are so many and why skimming may be a good strategy for some students, but not for others.
- Course Setup (Do)
- PY4DS: First Steps (Skim)
- PY4DS: CH1 Whole Game (Skim)
- PY4DS: CH2 Data Visualization (Read)
- P4DS: CH30 Markdown (Read)
- P4DS: CH31 Quarto (Skim)
- Quarto Instructional Template for DS (Read)
Optional References
Core Questions
Skills: Quarto + VS Code setup, HTML rendering, Polars basics
- Download this Project0 Template. The template has working code for the Penguin data set. You need to finish the project by adding code to recreate charts from the book. More specifically, copy and paste code from the book into this template quarto file to:
- Include the tables created from PY4DS: CH2 Data Visualization
- Recreate the example charts from PY4DS: CH2 Data Visualization of the textbook.
- Follow the instructions in the submission section below to submit your work
The main purpose of this project is to ensure your set-up and installations are done correctly (not necessarily to get all the charts/tables from the book recreated). You will know this is the case if you can create an html file with those graphs and table in it.
Submission:
When you have completed the report, follow this process to submit your work:
- Have this assignment’s template/quarto file open in VS Code and nothing else
- Click the
Previewbutton in VS Code (top right of the screen)- This renders the file so you can review it
- Confirm everything displays as you would like it to
- How you see it is how it is viewed for grading
- If there is an error in any cell of the quarto files, the rendering will stop and you will need to fix the error before rendering again (if you get stuck post your error in Slack)
- Once the report is confirmed close the preview and open a VS Code
Terminal- Click
Terminalin the top menu bar and thenNew Terminal
- Click
- Type the following in the terminal:
quarto render- Then drag and drop this assignment’s
.qmdfile into the terminal. This will add the file path to the command. - Press Enter
- Then drag and drop this assignment’s
- This renders the project into an
.htmlfile in the same location as the.qmdfile - To locate the file in VS Code
- Right click on the file in the file explorer and select
Reveal in File Explorer(Win) orReveal in Finder(Mac)
- Right click on the file in the file explorer and select
- Upload the
.htmlfile into Canvas
Deliverables:
Use this P0_template to submit your Client Report.
- The template should include answers to the tasks. Each should include a written description of your results, code cells with comments, charts and/or tables.
Your report should be written in quarto markdown files and rendered to an HTML File. Upload the HTML file in Canvas. (Do not submit the .qmd file)