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
| 10 | 20 | 30 |
| 14 | 22 | 36 |
Three days
| 8 | 12 |
| 10 | 16 |
| 12 | 20 |
Result for two days
- 012
- 121
- 233
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
9 13 17 21
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 →