Python and NumPy

Keep each greenhouse's average

Three days, two greenhouses

The greenhouse table stores days in rows. Botie's question asks for a typical temperature in each greenhouse, not each day.

BOTIE

For this three-row, two-column report, which result shape answers Botie's greenhouse question?
The inputs we are comparing

Days by greenhouses

Two days

102030
142236

Three days

812
1016
1220
Result for two days
  1. 012
  2. 121
  3. 233
Choose an explanation to test
Only one day was recorded

This check uses the pieces from “Give each greenhouse its own averaging row”.

BOTIE

Four greenhouses each have one reading. Predict the mean for each greenhouse. Which dimension should survive even though the report has only one row?
Days by greenhouses
9131721

Use a number, text, or an array matching the requested result. For a matrix, put each row in brackets. Saving your prediction runs your current construction on these inputs and checks the earlier examples too.

Build a construction in the workspace above first. This case will test those pieces.

How would you explain the wrong three-element answer without calling it an arithmetic error?

Before reducing an axis, identify what survives and what gets combined.

All days receive equal weight, and every greenhouse has a reading on every day.

Work through the Python challenges →
Continue the coursePreparing the Arrays We Need →
← Giving Measurements a Place