Module 1 · Start Here: Think Like a Data Scientist · Lesson 2 of 51
What data looks like: rows, columns and types
Tables, observations and variables, the main data types, tidy data, and how to inspect a table before trusting it.
In this lesson · about 30 minutes
- Explain rows (observations) and columns (variables)
- Classify a column as numeric (continuous or discrete), categorical (nominal or ordinal), date or text
- Spot common data problems before analysing
Rows, columns and the grain
In a well-made table, each row is one observation (one order, one customer, one day) and each column is one variable (something measured or recorded about it). The grain is what one row stands for. Always say it out loud: "one row per order" is a very different table from "one row per branch per day", and mixing them up is the most common cause of wrong totals.
Data types
| Type | What it is | Café example | What you can do |
|---|---|---|---|
| Numeric, continuous | Any value in a range, including decimals | total ($8.75), temperature | Average, sum, spread |
| Numeric, discrete | Counts: whole numbers | qty (2 muffins), visits | Average, sum, count |
| Categorical, nominal | Labels with no order | branch, payment method | Count, group by, most common |
| Categorical, ordinal | Labels with a natural order | cup size (S, M, L), rating (1–5 stars) | Count, median, sort |
| Date and time | A point in time | 2026-03-01, 7 am | Group by day, month, weekday; time gaps |
| Boolean | Yes or no | app_user (1 or 0), churned | Count, proportion |
| Free text | Anything typed | customer comments | Search, count words, language models |
A number is not always numeric data. An order_id of 1001 is a label: averaging order IDs is meaningless. Ask, "Would adding two of these make sense?"
Structured and unstructured
Structured data fits rows and columns (sales, sensor readings). Unstructured data does not: photos, audio, emails, reviews. Most data-science jobs start with structured data, which is what this bootcamp uses.
Tidy data
Data is tidy when every column is one variable, every row is one observation and every cell holds one value. A spreadsheet with a column per month ("Jan sales", "Feb sales", …) is wide, not tidy: "month" is hidden in the column names. Tools like pandas and Tableau work best on tidy, long tables (columns: branch, month, sales). You will reshape between the two in Module 5.
Try it · data lab
Explore a real-looking table
Thirty café orders. Sort, filter and inspect each column the way a data scientist does before any analysis. Then switch to the raw till export and hunt for problems.
Click a column name to sort by it; click again to reverse.
| # | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 1001 | 2026-03-01 | Riverside | Croissant | Bakery | 1 | 3.5 | 3.5 | New | Card |
| 1 | 1002 | 2026-03-01 | Downtown | Muffin | Bakery | 4 | 3 | 12 | Returning | Card |
| 2 | 1003 | 2026-03-01 | Riverside | Bagel | Food | 1 | 4.25 | 4.25 | New | Cash |
| 3 | 1004 | 2026-03-02 | Airport | Muffin | Bakery | 1 | 3 | 3 | Returning | Cash |
| 4 | 1005 | 2026-03-02 | Airport | Chai | Tea | 1 | 4 | 4 | Returning | App |
| 5 | 1006 | 2026-03-02 | Downtown | Croissant | Bakery | 2 | 3.5 | 7 | Returning | Card |
| 6 | 1007 | 2026-03-02 | Campus | Espresso | Coffee | 2 | 3 | 6 | New | Card |
| 7 | 1008 | 2026-03-03 | Riverside | Latte | Coffee | 2 | 4.5 | 9 | Returning | Card |
| 8 | 1009 | 2026-03-03 | Airport | Bagel | Food | 2 | 4.25 | 8.5 | Returning | App |
| 9 | 1010 | 2026-03-04 | Downtown | Croissant | Bakery | 4 | 3.5 | 14 | New | Card |
| 10 | 1011 | 2026-03-04 | Downtown | Muffin | Bakery | 1 | 3 | 3 | Returning | Card |
| 11 | 1012 | 2026-03-05 | Airport | Green tea | Tea | 1 | 3.25 | 3.25 | Returning | App |
| 12 | 1013 | 2026-03-06 | Campus | Espresso | Coffee | 1 | 3 | 3 | Returning | Cash |
| 13 | 1014 | 2026-03-06 | Campus | Sandwich | Food | 2 | 8.5 | 17 | New | Card |
| 14 | 1015 | 2026-03-07 | Airport | Green tea | Tea | 2 | 3.25 | 6.5 | Returning | Cash |
| 15 | 1016 | 2026-03-07 | Downtown | Chai | Tea | 1 | 4 | 4 | New | App |
| 16 | 1017 | 2026-03-07 | Airport | Chai | Tea | 1 | 4 | 4 | Returning | App |
| 17 | 1018 | 2026-03-07 | Campus | Muffin | Bakery | 2 | 3 | 6 | New | Card |
| 18 | 1019 | 2026-03-07 | Airport | Bagel | Food | 1 | 4.25 | 4.25 | New | Cash |
| 19 | 1020 | 2026-03-08 | Airport | Muffin | Bakery | 4 | 3 | 12 | New | Card |
| 20 | 1021 | 2026-03-08 | Downtown | Bagel | Food | 1 | 4.25 | 4.25 | Returning | Cash |
| 21 | 1022 | 2026-03-10 | Riverside | Sandwich | Food | 1 | 8.5 | 8.5 | Returning | Card |
| 22 | 1023 | 2026-03-10 | Campus | Croissant | Bakery | 2 | 3.5 | 7 | Returning | Card |
| 23 | 1024 | 2026-03-10 | Airport | Latte | Coffee | 1 | 4.5 | 4.5 | New | Cash |
| 24 | 1025 | 2026-03-10 | Downtown | Sandwich | Food | 4 | 8.5 | 34 | New | Card |
| 25 | 1026 | 2026-03-11 | Downtown | Latte | Coffee | 4 | 4.5 | 18 | Returning | Card |
| 26 | 1027 | 2026-03-11 | Airport | Cold brew | Coffee | 1 | 4.75 | 4.75 | New | App |
| 27 | 1028 | 2026-03-11 | Campus | Espresso | Coffee | 1 | 3 | 3 | New | Card |
| 28 | 1029 | 2026-03-11 | Riverside | Espresso | Coffee | 1 | 3 | 3 | New | Card |
| 29 | 1030 | 2026-03-13 | Campus | Bagel | Food | 1 | 4.25 | 4.25 | New | Card |
30 rows × 10 columns
Column total: decimal number (float)
Values
30
Missing
0
Unique
17
Mean
7.52
Ranges from 3 to 34. This is what pandas' describe() reports for a number column.
Sorting drill
What type of data is each column?
Classify each column from the café's tables.
- total (order value in $)
- temp_c (temperature)
- qty (items in the order)
- visits_90d (visits in 90 days)
- payment (Card, App, Cash)
- branch
- cup size (Small, Medium, Large)
- satisfaction (1 to 5 stars)
- order_id
- member_id (M0042)
0 of 10 sorted
Check your understanding0 of 3 correct
Quiz score: 0 of 3
Written by Noviq Academy in its own words. Kettle & Crumb and all its data are made up for teaching; any resemblance to a real business is a coincidence. Python runs in your browser with Pyodide, so results can differ slightly from your own computer. Power BI, Tableau and other product names belong to their owners. Read-aloud uses your device's built-in voices.