Public
Edited
Jul 23, 2023
Insert cell
Insert cell
Insert cell
Insert cell
penguinData
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
// Add your code here to do the wrangling steps above!

Insert cell
Insert cell
Insert cell
Insert cell
// Find the minimum culmen length in penguinData:

Insert cell
Insert cell
// Find the range of culmen lengths in penguinData:

Insert cell
Insert cell
// Mean of all body mass (grams) values in penguinData:

Insert cell
Insert cell
// Alternatively:

Insert cell
// Standard deviation of culmen depth:

Insert cell
Insert cell
// Count of flipper length values:

Insert cell
Insert cell
penguinData
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
// Group penguinData by species (store Map as groupSpecies):

Insert cell
Insert cell
// Then get just the Adelies:

Insert cell
Insert cell
// Group penguinData by species and island (store as groupSpeciesIsland):

Insert cell
Insert cell
// Get observations for Adelie penguins on Dream Island:

Insert cell
Insert cell
Insert cell
Insert cell
// Find the mean body mass by penguin species:

Insert cell
Insert cell
// Find the mean flipper length by penguin species and sex:

Insert cell
Insert cell
Insert cell
Insert cell
arrayOfArrays = [
[1, 2],
[3, 4]
]
Insert cell
arrayOfArrays.map(([firstNumber, secondNumber]) => ({
firstNumber,
secondNumber
}))
Insert cell
// Use flatRollup to find mean body mass by penguin species, then map to get an array of objects:

Insert cell
Insert cell
Insert cell
Insert cell
// Create a new bar chart with Observable Plot to visualize mean body mass by species:

Insert cell
Insert cell
Insert cell
Insert cell
import { showMe } from "@observablehq/show-me"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more