Link Search Menu Expand Document

Part 3: Analyzing Data with Logic and Iteration

In the final part of the 3-part workshop series, “Introduction to Python for Data Science,” we offer an overview of Python fundamentals for performing iterative tasks with for loops and conditional tasks using logic and if statements. We will then show how to apply these programming techniques to analyze and visualize multiple tabular datasets with Pandas. The content covered in this workshop will be a continuation of the content covered in part 1, “Introduction to Basic Programming with Data” and part 2, “Plotting and Analyzing Tabular Datasets”. We highly encourage attending both part 1 and 2 of the series before this workshop, especially for learners that are new to the Python programming language.

Presenters

Chasz Griego
Science and Engineering Librarian
Office: 4410, Sorrells Library
cgriego@andrew.cmu.edu

Learning Objectives

Workshop attendees will be able to:

  1. Store multiple values in Python with lists
  2. Make Python programs do iterative tasks
  3. Write programs that do tasks conditionally
  4. Process many data sets with a single command

Setup

To be best prepared for this workshop, please follow the setup instructions prior to attending.

Interactive Notepad

During the workshop, you can ask and answer questions in this Etherpad, a notepad for live collaboration.

Pre-Workshop Survey

Before the start of the workshop, please complete this survey. Thank you!!

Schedule

Section Time
Setup and Pre-Workshop Survey  
Lists 00:00
For Loops 00:25
Break 00:55
Conditionals 01:00
Looping Over Data Sets 01:30
Post-Workshop Survey 01:55
Finish 02:00

Interactive Curriculum

Click the Binder badge below to work through the course content in JupyterLab.

Binder

Post-Workshop Survey

Please complete this survey after attending the workshop. Thank you in advance!!!


Table of contents