Skip to main content Link Search Menu Expand Document (external link)

Tutor-Created Resources

This page is a collection of resources created by current and former DSC 10 tutors. Feel free to use these materials for additional explanations and extra practice with tricky concepts.

As a disclaimer, these materials are provided to help you study, but they are not to be taken as the authority. They may contain errors. Always refer to the course’s official materials (lecture slides, textbook, etc.) for the most accurate information. Feel free to ask questions about these materials if you think something is incorrect.

Table of contents

  1. Keyboard Shortcuts, Error Messages, and Basic Python
    1. Jupyter Notebook Keyboard Shortcuts
    2. Basic Coding Tips and Error Messages
    3. Common Errors and Keyboard Shortcuts in Jupyter Notebooks
    4. Variable Names
  2. Strings, Series, and Arrays
    1. String Methods
    2. Series String Methods
    3. .str.contains() and Other String Methods
    4. String, Series, and Array Methods
    5. Accessing Array Elements and Out of Bounds Errors
  3. DataFrames
    1. DataFrame Review
    2. .get()
    3. Query Examples
    4. .groupby()
    5. When to Use .groupby()
    6. Aggregation Methods for .groupby()
    7. Number of Rows After a Merge
    8. Merge
    9. Data Structures (Lists, Arrays, DataFrames, and Series)
  4. Functions
    1. Return Outside Function Error
    2. Print vs. Return
    3. Functions and .apply()
  5. For-Loops
    1. For-Loops
    2. For-Loops and the Accumlator Pattern
  6. Probability
    1. Probability Reference Sheet
    2. Probability Review
  7. Statistics
    1. Which Statistical Method to Use
    2. All About TVD
    3. What are p-values?
    4. How to Choose Test Statistics for Hypothesis Testing

Keyboard Shortcuts, Error Messages, and Basic Python

Jupyter Notebook Keyboard Shortcuts

by Pranav Rajaram


(source)

Basic Coding Tips and Error Messages

by Kathleen Nguyen


(source)

</center>

Common Errors and Keyboard Shortcuts in Jupyter Notebooks

by Aaron Rasin, Bill Wang, Leena Kang

Open Here

Variable Names

by Raine Hoang


(source)

Strings, Series, and Arrays

String Methods

by Keenan Serrano, Norah Kerendian, Ylesia Wu


(source)

Series String Methods

by Keenan Serrano, Norah Kerendian, Ylesia Wu


(source)

.str.contains() and Other String Methods

by Michelle Hong


(source)

String, Series, and Array Methods

by Sophie Wang


(source)

Accessing Array Elements and Out of Bounds Errors

by Raine Hoang


(source)

DataFrames

DataFrame Review

by Nathaniel Del Rosario, Ashley Ho, Chaninder Rishi

Open Here

.get()

by Raine Hoang


(source)

Query Examples

by Keenan Serrano, Norah Kerendian, Ylesia Wu


(source)

.groupby()

by Kate Feng


(source)

When to Use .groupby()

by Zoe Ludena


(source)

Aggregation Methods for .groupby()

by Raine Hoang


(source)

Number of Rows After a Merge

by Jason Huynh


(source)

Merge

by Ester Tsai


(source)

Data Structures (Lists, Arrays, DataFrames, and Series)

by Minchan Kim


(source)

Functions

Return Outside Function Error

by Raine Hoang


(source)

by Raine Hoang


(source)

Functions and .apply()

by Abel Seyoum


(source)

For-Loops

For-Loops

by Abel Seyoum


(source)

For-Loops and the Accumlator Pattern

by Raine Hoang


(source)

Probability

Probability Reference Sheet

by Suhani Sharma


(source)

Probability Review

by Athulith Paraselli


(source)

Statistics

Which Statistical Method to Use

by Claire Wang


(source)

All About TVD

by Calvin Nguyen


(source)

What are p-values?

by Daniel Budidharma


(source)

How to Choose Test Statistics for Hypothesis Testing

by Cici Xu


(source)