The column (or columns) whose value identifies each row of a table, so no two rows have the same value. Other tables point to it, as locality_code does in the aliyah practice database.
Glossary
Short, plain-language definitions of the terms and acronyms used in the course. Each entry links to the section where it is explained in context.
- A/B test
An experiment that shows two versions of something, for example two page designs, to different random groups of users and compares the results.
Where it is explained: Business value of data
- Aggregate (summary) function
A function that turns many rows into one value, such as COUNT, SUM, AVG, MIN and MAX. With GROUP BY it gives one value for each group.
- AI
Artificial intelligence: computer systems that perform tasks that usually need human judgment, such as recognizing images, translating text, or making predictions. In this course the focus is on systems that learn from examples.
Where it is explained: Working with data
- Annual report (filing)
A report that a public company submits to the securities regulator, with its revenue, profit, assets and debts for a fiscal year. In the S&P 500 practice file each row summarizes one such report.
- Anonymization
Removing or masking details that identify people so a dataset cannot easily be tied back to an individual. It lowers the risk but is not always perfect.
Where it is explained: From a question to data
- API
Application programming interface: a defined way for one program to ask another program for data or a service, for example to download weather data without opening a web page.
Where it is explained: From a question to data
- Argument and parameter
A parameter is the name a function gives to an input in its definition, such as value in def double(value). An argument is the actual value you pass when you call the function, such as 5 in double(5).
- Baseline
A simple reference point for comparison, such as the current situation or a naive rule. A new method is judged by how much it improves on the baseline.
Where it is explained: Business value of data
- Big Data
Data that is hard to handle with ordinary tools because of its volume, the speed at which it arrives, its variety, or its quality. There is no single size that makes data big.
Where it is explained: From a question to data
- Capturing group
A part of a pattern in round brackets. The pattern fits as if the brackets were not there, and the piece of text that fits inside them is saved: group(1) returns the piece of the first pair of brackets, group(2) the second, and so on.
- Causal relationship
A relationship in which one thing makes another happen, not merely appears together with it. Showing causation usually needs an experiment or strong assumptions.
Where it is explained: Business value of data
- Class
A template that describes a kind of object and its attributes. Every object created from the class has its own values for those attributes. In an ORM, a class stands for a table.
- Cloud computing
Storage and computing power rented from a provider over the internet instead of running on your own computer.
Where it is explained: Working with data
- Commit and rollback
commit saves the changes made to a database since the last save, and rollback cancels them. A change that is not committed is lost when the connection closes.
- Conditional expression
An expression that chooses between two values: a if condition else b is a when the condition is true and b otherwise, for example row[0] if row[0] is not None else 0.
- Connection
An object that stands for an open database in a program, returned by sqlite3.connect. A cursor is created from it, and it is closed with close when the work is done.
- CSV
Comma-separated values: a plain-text file where each line is a table row and the values are separated by commas. Almost every spreadsheet and data tool can read it.
Where it is explained: Working with data
- Cursor
An object that sends SQL statements to a database through a connection and holds the answer until the program takes the rows, for example with fetchall.
- Dashboard
A screen that gathers charts and key measures in one place so a team can follow them over time.
Where it is explained: Working with data
- Data dictionary
A description of every column in a dataset: its name, meaning, type, units, and allowed values.
Where it is explained: From a question to data
- db_session
The block with db_session: inside which Pony talks to the database. When the block ends normally Pony saves the changes, and an error inside it cancels them. A program that uses entities outside the block stops with an error; a notebook (Jupyter, Colab) lets a query run there, and the block is kept in notebooks as well.
- DBMS
Database management system: software that stores tables and lets you retrieve, filter, change, and connect them. SQLite is one example.
Where it is explained: Working with data
- DDL
Data Definition Language: the SQL commands that create tables or change their structure, such as CREATE TABLE and ALTER TABLE.
Where it is explained: Working with data
- Deep learning
A kind of machine learning that uses neural networks with many layers. It suits images, audio, and text, but usually needs many examples and a lot of computing power.
Where it is explained: Working with data
- Dictionary (Python)
A Python collection that keeps each value under a name, called a key, for example {'season': 'Winter', 'rentals': 985}. It works like a row with column names.
- DML
Data Manipulation Language: the SQL commands that add, change, or remove rows, such as INSERT, UPDATE, and DELETE.
Where it is explained: Working with data
- DQL
Data Query Language: the SQL command SELECT, which requests data without changing it. Some sources count it as part of DML; the course separates it to show its role.
Where it is explained: Working with data
- Endpoint
The address of an API to which a program sends its questions, such as https://en.wikipedia.org/w/api.php. The question itself is written after the address, as query parameters.
- Entity (Pony)
A Python class that stands for one table in an ORM. It inherits from db.Entity, each attribute describes a column (Required, Optional), and each object of the class stands for a row. Pony adds the primary key id by itself.
- f-string (formatted string)
Text that starts with the letter f before the opening quote and has values or calculations inside curly brackets, as in f'Season: {season}'. The f stands for formatted: Python computes each expression in the brackets and puts the result into the text.
- Foreign key
A column in one table that holds the primary key of a row in another table, and so links to it. In the weather practice database, weather_id in days is a foreign key to weather_types.
- Frontier model
One of the most capable AI models of its time.
Where it is explained: Business value of data
- Function
A named piece of code that takes values (parameters), does some work and can send a result back. It is defined once and used many times.
- Generator expression
A short Python expression in round brackets, such as (d.rentals for d in days if d.season == 'Summer'), that produces values one at a time. An ORM reads such an expression and translates it into an SQL query.
- Header (HTTP)
A piece of information about a request or an answer, sent with it as a name and a value, such as User-Agent, the name of the program that sends the request. In requests.get, the argument headers takes the headers of the request as a dictionary.
- HTML
The language in which web pages are written: text wrapped in tags, words in angle brackets that tell the browser what each piece is (a title, a link, a list). A page is a tree of elements; an element can have attributes such as href or class.
- HTTP
The agreed way in which a browser or a program talks to a web server: it sends a request for an address and gets a response with a status code and the content.
- Index (position)
The position of an item in a list or a tuple, written in square brackets after it. Counting starts at 0, so row[0] is the first value.
- JOIN
A SQL operation that combines rows from two tables according to matching values, such as the same station ID. If the key does not match properly, rows can be lost or multiplied.
Where it is explained: Working with data
- JSON
A text format for data, in which an answer of an API is usually written: curly brackets hold names and values, and square brackets hold lists. In Python, the method json() of a response turns it into dictionaries and lists.
- Key
A column whose values identify the same record in different tables or sources, for example a station ID used in both a trips table and a stations table.
Where it is explained: Working with data
- Lambda
A small function written in place without a name, for example lambda row: row[3], often used as the key of max or sorted.
- List (Python)
A Python collection of values in order, written in square brackets, that can grow and change. A table returned by a query is a list of rows.
- List comprehension
A short Python expression in square brackets, such as [d.rentals for d in days if d.season == 'Summer'], that builds a list: an expression, then for and a name, and optionally if and a condition. With round brackets instead of square ones it is a generator expression.
- Machine learning
Methods that learn rules or predictions from examples instead of being programmed with every rule by hand.
Where it is explained: Working with data
- Match
The piece of text where a pattern fits, and in Python the match object that describes it: the method group() returns the piece, and the object is None when the pattern fits nowhere.
- Method and attribute
An attribute is a value that belongs to an object, read as object.name (for example day.rentals). A method is a function that belongs to an object, called as object.name(...) (for example text.upper()).
- Missing values
Entries with no recorded value. They can mean unknown, not applicable, or not reported, and ignoring them can bias the results.
Where it is explained: Working with data
- Multiple comparisons
When many slices, time windows, or hypotheses are tested, the chance that something looks unusual by coincidence grows. Plan the questions in advance, or correct for the number of tests.
Where it is explained: Working with data
- Neural network
A model made of layers of simple connected units whose connection strengths are adjusted during training to fit examples.
Where it is explained: Working with data
- NLP
Natural language processing: methods for analyzing human language, such as classifying texts or measuring how similar two documents are.
Where it is explained: Working with data
- None
The Python value that means no value. A query that summarizes no rows, such as SUM over nothing, returns NULL, and Python shows it as None.
- NoSQL
A family of non-relational databases ("not only SQL"): they organize data in models such as key and value, documents, wide columns or graphs, rather than the classic linked tables of a relational database. They often have a flexible structure and are often chosen for very large scale.
Where it is explained: Working with data
- NULL
The mark a database uses for a missing value. A missing value is not zero and not an empty text, and it is not equal to anything, not even to another NULL, so it is tested with IS NULL rather than with =. COUNT(column) and the summary functions skip it.
- Object
A value that carries its own data (attributes) and its own functions (methods), written after a dot, as in day.rentals or text.upper(). In an ORM, an object stands for a row.
- Observational data
Data recorded without running an experiment. It shows what happened, but not always why.
Where it is explained: Business value of data
- Observational unit
What one row of a dataset describes, for example one trip, one station on one day, or one person.
Where it is explained: From a question to data
- One-to-many relation
A link between two tables in which one row of the first is pointed to by many rows of the second, through a foreign key: one country and its many yearly observations. In an ORM, the many side holds one object (observation.country) and the one side holds a set of objects (country.observations).
- Open data
Data that a government, institution, or community publishes for others to use, usually under a stated license. Open does not mean complete or error-free.
Where it is explained: From a question to data
- ORM
Object-relational mapper: a tool that lets you work with database tables as Python classes and objects, and translates your code into SQL.
- Overfitting
A model that matches its training examples very closely, including their noise, and therefore performs poorly on new data. A separate validation set helps reveal it.
Where it is explained: Working with data
- Parameterized query
A query that has a placeholder, such as ?, where a value belongs. The value is given separately, so the database treats it only as data and never as SQL.
- Parser
A program that reads text in a given format, such as HTML, and builds a structure from it that a program can ask questions about. Beautiful Soup uses a parser, such as html.parser, to build the tree of the elements of a page.
- Pattern
In a regular expression, the string that describes the text we look for: ordinary characters that fit themselves, classes such as \d that fit one character of a kind, quantifiers such as + that say how many times, and groups in round brackets.
- Primary key
- Query
A request written in a database language such as SQL: it names the table, the columns, the rows and the calculation wanted, and the database returns a result table.
- Query parameter
A pair of a name and a value that is added to an address after a question mark, such as prop=links. Pairs are separated by &. In requests.get, the argument params takes them as a dictionary and writes the final address.
- Raw string
A Python string written with the letter r before the opening quote, such as r'\d+'. Python keeps every backslash in it as it is, so patterns of regular expressions are written this way.
- Regular expression
A short text that describes the shape of a piece of text, such as digits followed by a space and the word pages. A program uses it to find, check or take out the pieces of a text that fit the shape. In Python the module re works with regular expressions.
- Relational database
A database that stores data in tables that are linked to each other through keys.
Where it is explained: Working with data
- robots.txt
A file at the top address of a site, in which the site asks programs which of its pages not to read and how long to wait between requests. It is a request that careful programs keep, not a lock.
- Schema
The structure of a database: its tables, columns, data types, and the relations between them.
Where it is explained: Working with data
- Slice
The part of a collection from one index up to another, without the last one, written with a colon: for rides = [985, 801, 1349, 1562, 1600], rides[1:3] is [801, 1349]. It gives a new list and leaves the original unchanged; rides[:2] keeps the first two values.
- SNA
Social network analysis: studying people or accounts and the ties between them as a network, to find structure such as groups and central participants.
Where it is explained: From a question to data
- SQL
Structured Query Language: the standard language for asking a database for data or for changing the data in it.
Where it is explained: Working with data
- SQL injection
An attack or mistake in which text that came from a user is pasted into an SQL query and changes what the query does, for example by adding a condition that is always true. Parameterized queries prevent it.
- SQLite
A small database engine that keeps a whole database in a single file and needs no server. The course uses it for practice.
Where it is explained: Working with data
- Status code
The number with which a server answers a request: 200 means that the page arrived, 403 that the server refuses the request, 404 that there is no such page, 429 that there were too many requests.
- Survivorship bias
Drawing conclusions only from the cases that survived a selection process while ignoring those that dropped out, for example studying only the aircraft that returned from battle.
Where it is explained: Working with data
- Synthetic data
Data produced by a model or a simulation rather than measured directly.
Where it is explained: Business value of data
- Table alias
A short name given to a table inside one query, written after the table name: in FROM daily_ridership d, the letter d stands for daily_ridership, so d.season is its column season. It makes joins shorter and shows which table each column comes from. It lasts only for that query and does not rename the table.
- Table, row and column
A table stores data about one kind of thing. Each row is one record (for example one day) and each column is one property of the records (for example the date or the number of rentals), with a name and a type.
- Text encoding
The rule that turns characters into bytes in a file, for example UTF-8. A wrong encoding turns letters into unreadable symbols.
Where it is explained: Working with data
- Ticker symbol
A short code that identifies a company's shares on a stock exchange, for example AAPL for Apple. A company with two classes of shares can have two tickers.
- Time series
Measurements of the same quantity recorded over time, such as the number of bicycles at a station every hour.
Where it is explained: From a question to data
- Tuple
A Python collection of values in order, written in round brackets, that cannot be changed after it is created. A row returned by a query is a tuple.
- Underfitting
A model that is too simple to capture the real pattern, so it performs poorly even on its training data.
Where it is explained: Working with data
- Unpacking
Taking the values out of a tuple and copying them into separate names in one line, for example day_id, date, season, rentals = row. The tuple stays as it was; it needs one name for each value.
- URL
The address of a page or a file on the web, such as https://arxiv.org/list/cs.AR/2026-10. After a question mark it can carry parameters, such as ?skip=0&show=25.
- User agent
The name that a browser or a program sends with every request. The requests library sends python-requests unless told otherwise; a polite program sends a name of its own that says what it is and how to reach its owner.
- Validation set
Examples set aside and not used for learning, used to check how a model performs on new cases.
Where it is explained: Working with data
- Variable
A name that refers to a value, created by assignment, such as rentals = 985. In Python the type belongs to the value, not to the name.
- Web scraping
Reading data from web pages with a program: the program requests a page, reads its HTML and picks out the pieces of data it needs. A site can allow or restrict it in its robots.txt and its terms of use, and the law differs between countries; this is not legal advice. Read both, and ask the site when in doubt.