Check the Shape Before the Answer
A table is a list of rows with a declared meaning for each column. Shape describes rows and columns. A two-by-two table has two rows, each with two values; equal dimensions alone do not prove the columns mean the same thing.
Authored explanation · fixed examples, not a live experiment.
Two rows × quantity/price columns
→Validate row length and nonnegative numeric values
→Only valid rows enter the total
What must be true before a table can be calculated? Name the evidence for your answer.
By the end of this lesson
Validate table dimensions and row meaning before calculating results.
Inside the lesson
- Read rows, columns and units
- Distinguish shape from meaning
- Reject malformed data
- Explain validation choices
- Inspect a sensor table
- Keep the input contract
The reproducibility tasks require running the supplied Python starter. Setup instructions and examples are included.