Data 6: Introduction to Computational Thinking with Data Science and Society 📊

UC Berkeley, Summer 2025

Ed Gradescope Lecture Recordings Jump to Current Week

Instructor

Jedi Tsang

He/Him

jedidiahtsang@berkeley.edu

Week 6 Announcements

Aug 10
  1. Assignments Due
  2. Monday’s lecture will be on Zoom! Details can be found on this Edstem post.
  3. The Final is on Friday, 10/15, 10-12 PM @SOCS 170
  4. No tutoring this week
  5. Fill out course evaluations!
  6. Jedi’s OH changes to Tues-Fri, 8-10 PM on Zoom

Week 1 — Introduction to Python

Jul 7
1 Introduction, Course Overview
Slides
2 Jupyter Notebooks, Arithmetic
SlidesBlank Demo
Optional Reading: CIT 1.1, 3.1, SPR 8
Survey Pre-Semester Survey
Jul 8
3 Evaluations, Names, and Data Types
SlidesBlank Demo
Optional Reading: PPDS 1.2, CP 1.2, CIT 3.2, 4.1, 4.2, 5.1
Lab 1 Lab 01: Using Jupyter Notebooks
Jul 9
4 Arrays, NumPy, Indexing, Working with Data
SlidesBlank Demo
Optional Reading: PPDS 5.2, CIT 5.6
5 Introduction to Social Science Research
Slides
Homework 1 HW 01: Introduction to Python
Jul 10
6 Table Fundamentals
SlidesBlank Demo
Optional Reading: CIT 6, CIT 6.2, datascience Documentation
Lab 2 Lab 02: Tables and Data Manipulation
Jul 11
Discussion 1 Fractions & Health Data
SlidesWorksheetSolution
Discussion 2 Python Basics: Names, Operations, Debugging
SlidesWorksheetSolution
Discussion 3 Documentation, Array Operations, & Table Methods
SlidesWorksheetSolution
Survey Week 01 Survey

Week 2 — Functions and Table Methods

Jul 14
7 Sorting and Filtering Rows
SlidesBlank Demo
Optional Reading: CIT 6.1, CIT 6.2
8 Functions Part 1
SlidesBlank Demo
Optional Reading: CIT 8, SPR 9, PPDS 2.5
Reading Reading 01
Jul 15
9 Applying
SlidesBlank Demo
Optional Reading: CIT 8.1
Lab 3 Lab 03: Functions
Jul 16
10 Row Methods, Joining Tables
SlidesBlank Demo
Optional Reading: CIT 8.4
11 Grouping and Pivoting
SlidesBlank Demo
Optional Reading: CIT 7.1.3, CIT 8.3.3, Table Function Visualizer
Jul 17
12 More Grouping and Pivoting
SlidesRecording: Password = gY@DP7ZHBlank Demo
Lab 4 Lab 04: Tables
Homework 2 HW 02: Table Methods and Functions
Jul 18
Discussion 4 Data Privacy, Join, Group, Pivots
SlidesWorksheetSolution
Discussion 5 Functions, Scope, HOF
SlidesWorksheetSolution
Survey Week 02 Survey

Week 3 — Visualization and Grouping

Jul 21
13 Intro Visualizations
Slides
14 Visualizing Categorical and Numerical Variables
SlidesCategorical VariablesNumerical Variables
Optional Reading: CIT 7.3, FDV 12.1
Reading Reading 02
Jul 22
15 Bickel Case Study
Slides
Lab 5 Lab 05: Introduction to Visualization Methods
Jul 23
16 Visualizing Two Numerical Variables
SlidesBlank Demo
17 Maps
SlidesBlank Demo
Optional Reading: Plotly Documentation
Jul 24
18 Sampling
Slides
Lab 6 Lab 06: Visualizing Two Numerical Variables and Randomness in Jittering
Homework 3 HW 03: Advanced Table Methods and Visualizations
Jul 25
Discussion 6 Gini Coefficients
SlidesNotebookSolution
Discussion 7 Visualizations and Algorithmic Bias
SlidesWorksheetSolution
Survey Week 03 Survey

Week 4 — Control and Iteration

Jul 28
19 Control
Slides
Optional Reading: CIT 9.1; CP 1.5
20 Iteration
Slides
Optional Reading: CIT 9.2; SPR 12
Reading Reading 03
Jul 29
21 More Iteration
SlidesBlank Demo
Optional Reading: PPDS 2.1
Lab 7 Lab 07: Functions, Control, Iteration
Jul 30

Quiz Quiz 2

Jul 31
22 File Formats, Dictionaries
SlidesBlank Demo
Optional Reading: SPR 23; CP 2.4.3
Lab 8 Lab 08: Dictionaries
Homework 4 HW 04: Control, Iterations, Strings
Aug 1
Discussion 8 Control, Iteration, Dictionaries
SlidesWorksheet
Discussion 9 Navigating Ethics and Impact in Data Visualization
SlidesWorksheet
Survey Week 04 Survey

Week 5 — Project Work and LLMs

Aug 4
23 Computational Social Science
Slides
Aug 5
24 Large Language Models and TF-IDF
Slides
Lab 9 Lab 09: APIs and Prompt Engineering
Aug 6
25 More LLMs and Prompt Engineering
Slides
26 Evaluation and IRR
Slides
Project Final Project: Are We Cooked?
Aug 7
27 Review
Lab 10 Lab 10: TF-IDF, Cohen’s Kappa, and Macro F1
Aug 8
Discussion 10 Impacts of LLMs
Slides
Survey Week 05 Survey

Week 6 — Web, Plotting, and Final Review

Aug 11
28 Randomness, Simulation Part 1
SlidesBlank Demo
Optional Reading: CIT 9; CIT 9.3
Aug 12
29 Randomness, Simulation Part 2
SlidesBlank Demo
Aug 13
30 Fun with Plotly
SlidesBlank Demo
Optional Reading: Plotly Documentation
Aug 14
31 Conclusion and What’s Next
Slides
Aug 15
Final Exam