Header Row and Observation
A header row is the first row of a table, holding the name of each column; an observation is one row beneath it, holding all the values that belong to a single thing โ one order, one patient, one day. Together they turn a grid of cells into a table, because they state what a column means and what a row is a row of.
The vocabulary varies by field and tool. Column headers are also called attributes, fields, variables, or column names; rows are called records or observations. The interchangeable words matter less than the invariant: every cell in a column carries the same kind of value, and every row describes the same kind of entity at the same level of detail.
Several familiar layouts break that promise, and each one costs something later. A report title or a merged banner above the headers means the first row is not the header. A blank spacer row splits the table in two as far as sorting and range selection are concerned. A subtotal row mixed in with the data is an observation of a different kind, and it will be counted, averaged, and re-summed by anything that reads the column. Two values in one cell โ a name and an ID, a quantity and its unit โ make the column impossible to compute with until it is split.
Practical consequences follow directly. Sorting must include every column of the table, or rows come apart and values end up attached to the wrong entity; the header row is excluded from the sort, which is why tools ask whether your data has headers. Named, unambiguous headers without stray spaces are what lookups and imports match on. And when a spreadsheet resists analysis, checking the header-and-observation shape first usually explains why faster than inspecting any formula.
References:
Discover more from Insightful Data Lab
Subscribe to get the latest posts sent to your email.
