Which Direction Are We Adding?

A table can hold several greenhouses across several days. Adding across a row answers a different question from adding down a column. We need to keep that distinction when we ask an array to calculate.

10 sections · 5 questions · 2 coding challenges

1 / 10

Keeping the Meaning of a Scientific Table

BOTIE

Scientific records commonly separate observations from the things measured about them. Array programming keeps those distinctions as axes, so a calculation can combine one direction while preserving the others.

NumPy's documented reduction operations make the chosen axis explicit. Our two-day greenhouse table is an invented example of why that choice matters. We are using an established array convention, not attributing the invention of tables or averages to NumPy.

Sources for this history