Announcements

11/18

Quiz 4 will take place in class on Wednesday 11/20.

  • Covers Lessons 18 and 19.
  • 15 minutes, pen-and-paper.
  • You are not allowed to use any outside assistance on this quiz: closed book, closed notes, closed internet, etc.
  • No collaboration allowed.

11/8

Project 5 is due on Monday 11/25 at 23:59. See below for details.

10/30 (updated)

Exam 2 will take place in class on Wednesday 11/6 and Friday 11/8.

  • Focuses on Lessons 12-17.
  • Wednesday – Parts 1 and 2 (50%):
    • Pen and paper.
    • Part 1 – Writing basic Pandas code.
      • Query rows, sort rows, select/rearrange columns, remove columns, rename columns, use assign to create new columns.
    • Part 2 – Multiple choice.
    • You must turn in Part 1 before beginning Part 2.
    • You are not allowed to use any references or outside assistance for these parts.
    • You are not allowed to run Python code during these parts.
  • Friday – Part 3 (50%):
    • Writing code in Jupyter notebooks.
    • You are allowed to refer to your class materials (e.g., notes, projects) and references linked directly from the course website (e.g., Pandas documentation) during this part.
  • No collaboration allowed.

10/21

Project 4 is due on Wednesday 10/30 at 23:59. See below for details.

10/21

Quiz 3 will take place in class on Wednesday 10/23.

  • Covers Lessons 12-15.
  • 15 minutes, pen-and-paper.
  • You are not allowed to use any outside assistance on this quiz: closed book, closed notes, closed internet, etc.
  • No collaboration allowed.

10/16

You may have trouble submitting your completed Project 3 with the submission form, because it may exceed the 10 MB limit with all the charts included.

To resolve this, clear all the outputs in your Project 3 notebook:

  • In Jupyter Lab: Edit → Clear Outputs of All Cells
  • In Jupyter Notebook: Cell → All Outputs → Clear

Then save your notebook and submit it.

This will clear all the charts from your notebook, but your code will remain intact. For all assignments, I re-run your entire notebook before grading it.

10/6

Project 3 is due on Wednesday 10/16 at 23:59. See below for details.

9/27

Exam 1 will take place in class on Wednesday 10/2 and Friday 10/4.

  • Focuses on Lessons 3-9 (and required background from Lessons 1-2).
  • Wednesday – Parts 1 and 2 (50%):
    • Pen and paper.
    • Part 1 – Writing basic Altair code.
    • Part 2 – Multiple choice.
    • You must turn in Part 1 before beginning Part 2.
    • You are not allowed to use any references or outside assistance for these parts.
    • You are not allowed to run Python code during these parts.
  • Friday – Part 3 (50%):
    • Writing code in Jupyter notebooks.
    • You are allowed to refer to your class materials (e.g., notes, projects) and references linked directly from the course website (e.g., Altair documentation) during this part.
  • No collaboration allowed.

9/13

Project 2 is due on Wednesday 9/25 at 23:59. See below for details.

9/12

Quiz 2 will take place in class on Wednesday 9/18.

  • Covers Lessons 4, 5, 6.
  • 15 minutes, pen-and-paper.
  • You are not allowed to use any outside assistance on this quiz: closed book, closed notes, closed internet, etc.
  • No collaboration allowed.

8/29

Project 1 is due on Wednesday 9/11 at 23:59. See below for details.

8/29

Quiz 1 will take place in class on Wednesday 9/4.

  • Covers Lessons 2, 3, 4.
  • 15 minutes, pen-and-paper.
  • You are not allowed to use any outside assistance on this quiz: closed book, closed notes, closed internet, etc.
  • No collaboration allowed.

8/19

Welcome!

Show older announcements

Schedule

Date Class Homework

11/22

  • Continue Lesson 21

11/20

  • Quiz 4
  • Start Lesson 21

11/18

  • Lesson 20
  • Work on Problems 1-5 in Lesson 20

11/15

  • Finish Lesson 19
  • Work on Problems 1-5 in Lesson 19

11/13

  • Start Lesson 19

11/8

  • Exam 2 – Part 3

11/6

  • Exam 2 – Parts 1 and 2

11/4

  • Finish Lesson 18
  • Work on Problems 0-7 in Lesson 18

11/1

  • Continue Lesson 18
  • Work on Problems 0-7 in Lesson 18

10/30

  • Start Lesson 18
  • Work on Problems 0-7 in Lesson 18

10/28

  • Lesson 17
  • Work on Problems 0-3 in Lesson 17

10/25

  • Finish Lesson 16
  • Work on Problems 1-6 in Lesson 16

10/23

  • Quiz 3
  • Continue Lesson 16
  • Work on Problems 1-2, 4-6 in Lesson 16

10/21

  • Start Lesson 16
  • Work on Problems 1-2 in Lesson 16

10/18

  • Finish Lesson 15
  • Work on Problem 3 in Lesson 15

10/16

  • Start Lesson 15
  • Work on Problems 0-2 in Lesson 15

10/11

  • Lesson 14
  • Work on Problems 1-5 in Lesson 14

10/9

  • Lesson 13
  • Work on Problems 1-8 in Lesson 13

10/7

  • Lesson 12
  • Work on Problems 0-4 in Lesson 12

10/4

  • Exam 1 – Part 3

10/2

  • Exam 1 – Parts 1 and 2

9/30

  • Finish Lesson 11
  • Work on Problems 1-3 in Lesson 11

9/27

  • Start Lesson 11
  • Work on Problem 1 in Lesson 11

9/25

  • Work on Project 2
  • Project 2 due on W 9/25 at 23:59

9/23

  • Finish Lesson 9
  • Lesson 10
  • Work on Problems 1-4 in Lesson 9

9/20

  • Continue Lesson 9
  • Work on Problems 1 and 3 in Lesson 9

9/18

  • Quiz 2
  • Start Lesson 9
  • Work on Problems 1-2 in Lesson 9

9/16

  • Finish Lesson 8
  • Work on Problems 1-3 in Lesson 8

9/13

  • Start Lesson 8
  • Work on Problems 1-2 in Lesson 8

9/11

  • Lesson 7
  • Work on Problems 1-3 in Lesson 7
  • Project 1 due on W 9/11 at 23:59

9/9

  • Finish Lesson 6
  • Work on Problems 1-5 in Lesson 6

9/6

  • Start Lesson 6
  • Work on Problem 1 in Lesson 6

9/4

  • Quiz 1
  • Finish Lesson 5
  • Work on Problems 1-5 in Lesson 5

9/3

  • Start Lesson 5
  • Work on Problems 1-2 in Lesson 5

8/30

  • Finish Lesson 4
  • Work on Problems 1-5 in Lesson 4

8/28

  • Finish Lesson 3
  • Start Lesson 4
  • Work on Problems 1-5 in Lesson 3

8/26

  • Continue Lesson 3
  • Work on Problem 1 in Lesson 3

8/23

  • Lesson 2
  • Start Lesson 3
  • Work on Problems 1-4 in Lesson 2

8/21

  • Finish Lesson 1

8/19

  • Course logistics
  • Check Anaconda installations
  • Lesson 0: course overview
  • If we have time: start Lesson 1
  • Complete the student questionnaire (sent by email)

Show past days

General Information

Resources

Lessons

Dates Lesson
  • 11/25
  • 11/22
  • 11/20
21 Regular expressions
  • 11/18
20 Strings and datetimes in Pandas
  • 11/15
  • 11/13
19 Combining data in Pandas
  • 11/4
  • 11/1
  • 10/30
18 Tidy data
  • 10/28
17 Working with missing values in Pandas
  • 10/25
  • 10/23
  • 10/21
16 Split-apply-combine in Pandas
  • 10/18
  • 10/16
15 Creating new variables in Pandas
  • 10/11
14 Sorting rows and selecting columns in Pandas
  • 10/9
13 Filtering observations in Pandas
  • 10/7
12 Introduction to data wrangling – the Pandas DataFrame and Series
  • 9/30
  • 9/27
11 Cartographic visualization
  • 9/23
10 Data sources in Altair
  • 9/23
  • 9/20
  • 9/18
9 Interactive visualization
  • 9/16
  • 9/13
8 Multi-view composition – facet, concatenate, repeat
  • 9/11
7 Multi-view composition – layers
  • 9/9
  • 9/6
6 Customizing visualizations
  • 9/4
  • 9/3
5 Advanced data transformations with Altair
  • 8/30
  • 8/28
4 Basic data transformations with Altair
  • 8/28
  • 8/26
  • 8/23
3 Introduction to data visualization with Altair
  • 8/23
2 Warm up
  • 8/21
1 A survival course in Jupyter and Python
  • 8/19
0 Course overview

Projects

Project Instructions

Project 5 — COVID-19 in the US revisited

Due Monday 11/25 @ 23:59.

Work on your own. Submit 1 project per student. Verbal collaboration is allowed, but sharing of code is not permitted.

Project 4 — Exploring Tracks on Spotify

Due Wednesday 10/30 @ 23:59.

Work on your own. Submit 1 project per student. Verbal collaboration is allowed, but sharing of code is not permitted.

Project 3 — COVID-19 in the United States

Due Wednesday 10/16 @ 23:59.

Work in teams of 1 or 2. Tell me who you're working with using this Google Form.

Submit 1 project per team. Verbal collaboration between teams is allowed, but sharing of code is not permitted.

Project 2 — Corruption and Human Development

Due Wednesday 9/25 @ 23:59.

Work on your own. Submit 1 project per student. Verbal collaboration is allowed, but sharing of code is not permitted.

Project 1 — Higher Education and Future Earnings

Due Wednesday 9/11 @ 23:59.

Work on your own. Submit 1 project per student. Verbal collaboration is allowed, but sharing of code is not permitted.

Quizzes

Date Quiz
10/23 Quiz 3
9/18 Quiz 2
9/4 Quiz 1

Exams

Date Exam
11/8 Exam 2
10/4 Exam 1