Please enable JavaScript to use CodeHS

Data Science with Python

Description

In this lesson, students will learn what data science is, what a data scientist does, and the different types of questions that can be asked about data. Students will learn that statistical questions include computations or finding a relationship or pattern.

Objective

Students will be able to:

  • Recognize and formulate statistical questions
  • Think critically about data and its sources
Description

In this lesson, students will learn about the data cycle and apply the first two steps of asking questions and considering data. Students will start a mini-project that spans through the rest of the module by asking a statistical question about a field of interest and gathering and structuring the data. They will also learn about and consider both quantitative and qualitative data.

Objective

Students will be able to:

  • Explain and apply the data cycle
  • Consider data as either quantitative or qualitative
  • Structure data into tables of rows and columns
Description

In this lesson, students will learn the basics of Python programming in the context of data science. This includes how to define and use variables and lists, how to use comparison and logical operators, and the importance of knowing the different data types used in Python.

Objective

Students will be able to:

  • Use the basics of Python in the context of data science
  • Define and use variables and lists
  • Use comparison and logical operators
  • Understand the importance of the different data types used in Python
Description

In this lesson, students will learn about Python modules and libraries and how to implement and use them within the editor.

Objective

Students will be able to:

  • Import and use Python modules and libraries
  • Explain the importance of documentation
  • Read and use documentation
Description

In this lesson, students will learn how to create a use a Pandas Series. They will also learn and explore measures of central tendency including the mean, median, and mode.

Objective

Students will be able to:

  • Create a Series using the Pandas library
  • Compute the mean, median, and mode of a Series
  • Decide whether the mean, median, or mode is the best measure of central tendency for a specific dataset
Description

In this lesson, students will expand their statistical knowledge to include the spread of a dataset. They will learn about and apply measures of spread including standard deviation, variance, range, and interquartile range.

Objective

Students will be able to:

  • Use functions to compute the standard deviation and variance of a Series
  • Use variables, functions, and operators to determine the range and interquartile range of a Series
  • Use functions to plot a boxplot and histogram
  • Understand what the measures of spread mean for a dataset
Description

In this lesson, students will learn how to create a data frame using the Pandas library. They will also learn and use functions to explore a data frame further including which data types are included, the shape of the data frame, the descriptive statistics of the data in each column, and more.

Objective

Students will be able to:

  • Create a data frame using Pandas
  • Explore a data frame using key functions
Description

In this lesson, students will learn how to filter a data frame by selecting and displaying only specific columns. They will also learn how to filter rows displayed by using conditionals. Lastly, students will learn how to change the index used in a data frame and set it to a column of their choice.

Objective

Students will be able to:

  • Filter a data frame by displaying specific columns
  • Filter a data frame using conditionals
  • Set and reset the indices of a data frame
Description

In this lesson, students will define and use functions, along with values in a dataset, to calculate and create new columns of data.

Objective

Students will be able to:

  • Define and use functions
  • Use existing data values to create new columns of data
Description

In this lesson, students will practice collecting, explaining, and presenting the important data and details of their mini-project.

Objective

Students will be able to:

  • Interpret meaning from data
  • Extrapolate and present important details from a dataset
Description

In this lesson, students review content with a 15 question end-of-module quiz.

Objective

Students will be able to:

  • Demonstrate their understanding of Python, Pandas, and data science basics