In this blog post assignment, you’ll create a short post for your new website. The primary purpose is to give you some practice working with Quarto blogging with Python code.
Make sure to check the “Specifications” section at the bottom of this assignment for an explicit list of criteria that your blog post must meet in order to receive credit.
Instructions
To complete this homework assignment, you’ll need to have completed installations of Anaconda, GitHub Desktop, and Quarto as described in this post.
1. Complete the Hello, Quarto activity
Your first step should be to complete the Hello Quarto activity to help you get familiar with blogging with Quarto. If you already completed this activity in Discussion, then you can skip to the next step.
If you haven’t done so already, now is a good time to modify your site. Look around the site’s files and see if you can figure out how to modify the About page and the blog’s title from about.qmd and _quarto.yml.
See these pages for help: about page, config options.
If you are comfortable with css, then you can directly modify style.css and other files in the repo.
All this is optional, and it’s not necessary to put your real name or real photo anywhere on the site.
2. Create a post
Create a simple blog post, using the instructions and demonstrations here. Here is the prompt for your post:
Write a tutorial explaining how to construct an interesting data visualization of the Palmer Penguins data set.
You can read the data into Python by running:
import pandas as pd
url = "https://raw.githubusercontent.com/PhilChodrow/PIC16B/master/datasets/palmer_penguins.csv"
penguins = pd.read_csv(url)Your visualization does not have to be complex or fancy, but it should be highly readable and appropriately labeled.
Your post should include the image directly under the code that generates it, as demonstrated here.
Publish your blog to the web. Then, print the webpage as a PDF and submit it on Gradescope.
Hint
The easiest way to create a post like this is to solve the problem in a Jupyter Notebook or Python script first, and then transfer the results over to your blog.
Specifications
Coding Problem
- The plot is readable and contains axis labels, a title, and a legend if appropriate.
Style and Documentation
- Repeated operations should be enclosed in functions.
- For-loops are minimized by making full use of vectorized operations for Numpy arrays and Pandas data frames.
- Helpful comments are supplied throughout the code. Docstrings are supplied for any functions and classes you define.
Writing
- The overall post is written in engaging and unambiguous English prose. There is written explanation throughout the post, such that a PIC16A student could learn to perform the demonstrated tasks by reading the post.
- Each block of code has a clearly-explained purpose.
- The post is organized into clearly delimited sections using markdown headers (#), making it easier for the reader to navigate.