Data Science Hour of Code

Activity 1: Displaying a Chart

Scenario:

  • You're a data scientist working with a group of researchers from Antarctica.
  • They have collected a bunch of data about penguins, but need help answering questions about it.
  • Your job is to make some charts from the data and answer some of their questions.

Introduction:

Welcome to our Data Science Hour of Code. Today, we are going to use charts to explore data and answer some questions. A dataset is typically a large set of numbers or values. Often, these would be presented in a table or spreadsheet. For example, below we have a few sample rows and columns from a file called Penguins1.csv. When you only have a few rows of data, you might be able to examine the table and find some information. However, when you have hundreds of rows, we might want to represent our data in a chart.

Sample of Penguins1.CSV file
bill_depthbill_length
18.739.1
18.337.8
18.536.8
13.246.1
17.946.5

Instructions:

In the code editor below, we have a program that reads in this file to a DataFrame and makes a Chart. Take code blocks from the palette and place them at the bottom of the program.

  1. Use the block(s) in the palette on the left.
  2. Place the 'chart:Display()' block below the 'chart:ShowLegend(false)' block at the bottom of the block editor on the right.
  3. Run the program.
  4. Use the chart in the canvas to answer the questions in the Activity section.

Coding:

Blocks

Activity:

Use the chart(s) you've created in the Coding section to answer a few questions.








Next Tutorial

In the next tutorial, we will discuss Labeling a Chart, which describes how to custimze the labels on a Chart..