# Python vocabulary

415 Python terms, from Novice to Master. Start with the basics or jump to a level.

Updated: November 19, 2026

## Novice

- [Arithmetic Operators](https://www.ask-codey.com/glossary/arithmetic-operators): The math symbols: + - \* / // % \*\*.
- [Assignment](https://www.ask-codey.com/glossary/assignment): Storing a value in a variable with a single =.
- [Augmented Assignment](https://www.ask-codey.com/glossary/augmented-assignment): A shortcut like += that updates a variable using its current value.
- [Axis Label](https://www.ask-codey.com/glossary/axis-label): The words along a chart's axis that say what it measures and its unit, such as Recycled (tons).
- [Bar Chart](https://www.ask-codey.com/glossary/bar-chart): A chart that draws each amount as a bar whose height is the amount, so groups can be compared at a glance.
- [Built-in Function](https://www.ask-codey.com/glossary/built-in-function): A function that comes with Python, like print() and len(). No import needed.
- [Comment](https://www.ask-codey.com/glossary/comment): A note for people reading the code, starting with #. Python ignores it.
- [Comparison Operators](https://www.ask-codey.com/glossary/comparison-operators): Symbols like == and &lt; that compare two values and answer True or False.
- [Constant](https://www.ask-codey.com/glossary/constant): A value that should never change, named in ALL CAPS so everyone leaves it alone.
- [Data Type](https://www.ask-codey.com/glossary/data-type): What kind of value something is: whole number, decimal, text or True/False.
- [elif](https://www.ask-codey.com/glossary/elif): "Else if": checks another condition when the ones above it were false.
- [else](https://www.ask-codey.com/glossary/else): Runs when none of the if or elif conditions above it were true.
- [Escape Character](https://www.ask-codey.com/glossary/escape-character): A backslash that gives the next character a special meaning, like \\n for a new line.
- [Exponent](https://www.ask-codey.com/glossary/exponent): The \*\* operator: raises a number to a power.
- [Floor Division](https://www.ask-codey.com/glossary/floor-division): Dividing with // and dropping anything after the decimal point.
- [f-string](https://www.ask-codey.com/glossary/f-string): Text with values dropped straight in: f"Hi {name}".
- [Grand Total](https://www.ask-codey.com/glossary/grand-total): The total of everything, across every group, which each group's share is divided by.
- [if Statement](https://www.ask-codey.com/glossary/if-statement): Runs a block of code only when a condition is true.
- [Indentation](https://www.ask-codey.com/glossary/indentation): The spaces at the start of a line. Python uses them to group code into blocks.
- [input()](https://www.ask-codey.com/glossary/input): Waits for the user to type something and gives it back as a string.
- [Interpreter](https://www.ask-codey.com/glossary/interpreter): The program that reads your Python code and runs it, line by line.
- [len()](https://www.ask-codey.com/glossary/len): Tells you how many items something has.
- [Line Chart](https://www.ask-codey.com/glossary/line-chart): A chart that joins measurements taken in order, usually one per day or month, with a line, so the reader sees how a value changed over time.
- [Logical Operators](https://www.ask-codey.com/glossary/logical-operators): and, or and not: they combine True/False checks.
- [Mean](https://www.ask-codey.com/glossary/mean): The average: add the values up and divide by how many there are; one very large value can pull it far.
- [Median](https://www.ask-codey.com/glossary/median): The middle value when the values are sorted, so one very large or small value can't pull it far.
- [Missing Value](https://www.ask-codey.com/glossary/missing-value): A cell with no value in it: left blank, or typed as a word such as unknown that means nobody knew. pandas shows it as NaN.
- [Modulo](https://www.ask-codey.com/glossary/modulo): The % operator: the remainder left over after dividing.
- [NameError](https://www.ask-codey.com/glossary/nameerror): The error Python stops with when it meets a name it doesn't know, often a typo such as prnt for print.
- [Newline](https://www.ask-codey.com/glossary/newline): The invisible character that ends a line of text, written \\n.
- [None](https://www.ask-codey.com/glossary/none): Python's way of saying "nothing here yet".
- [Notebook](https://www.ask-codey.com/glossary/notebook-python): A file of cells, code cells and Markdown cells, that keeps each cell's result saved under it; saved as an .ipynb file.
- [Notebook Cell](https://www.ask-codey.com/glossary/notebook-cell): One block of a notebook, run on its own: a code cell holds Python and shows its result under it, a Markdown cell holds notes.
- [Pie Chart](https://www.ask-codey.com/glossary/pie-chart): A circle cut into slices, one per part of a whole; hard to read, because people compare angles poorly.
- [print()](https://www.ask-codey.com/glossary/print): Shows text or values on the screen.
- [Python](https://www.ask-codey.com/glossary/python): A popular, beginner-friendly programming language that reads almost like plain English.
- [Python Install Manager](https://www.ask-codey.com/glossary/python-install-manager): python.org's tool for installing Python on Windows: it gives the py and python commands, and py install adds a version.
- [Raw Data](https://www.ask-codey.com/glossary/raw-data): Data exactly as it was collected, before any cleaning; it's kept as it is, never written over, so the cleaning can be checked and run again.
- [REPL](https://www.ask-codey.com/glossary/repl): Python's interactive prompt: type a line, press Enter, see the result right away.
- [round()](https://www.ask-codey.com/glossary/round): Rounds a number, to a whole number or a set number of decimal places.
- [Running Total](https://www.ask-codey.com/glossary/running-total): A number you keep adding to as you go through the rows, such as a store's sales so far; a dictionary can keep one for each group.
- [Script](https://www.ask-codey.com/glossary/script): A .py file of Python code you run from top to bottom to get a job done.
- [snake_case](https://www.ask-codey.com/glossary/snake-case-python): Python naming style: all lowercase with underscores between words.
- [String](https://www.ask-codey.com/glossary/string): Text inside quotes, like "hello" or 'coffee'.
- [String Concatenation](https://www.ask-codey.com/glossary/string-concatenation): Joining strings end to end with +.
- [SyntaxError](https://www.ask-codey.com/glossary/syntaxerror): The error Python gives when it can't read the code at all, such as a missing quote or colon, so no line of the file runs.
- [Traceback](https://www.ask-codey.com/glossary/traceback): The error report Python prints when something goes wrong. Read it from the bottom up.
- [Truthy and Falsy](https://www.ask-codey.com/glossary/truthy-and-falsy): In an if, empty or zero values count as False (falsy); most others count as True (truthy).
- [Type Conversion](https://www.ask-codey.com/glossary/type-conversion): Turning a value into another type with int(), float() or str().
- [type()](https://www.ask-codey.com/glossary/type): Tells you the data type of a value.
- [Variable](https://www.ask-codey.com/glossary/variable): A name that holds a value, like a labelled box.
- [Whitespace](https://www.ask-codey.com/glossary/whitespace): Spaces, tabs and new lines. In Python, leading spaces decide which block a line is in.

## Apprentice

- [\*\*kwargs](https://www.ask-codey.com/glossary/kwargs): Lets a function accept any number of keyword arguments, collected as a dictionary.
- [\*args](https://www.ask-codey.com/glossary/args): Lets a function accept any number of positional arguments, collected as a tuple.
- [append()](https://www.ask-codey.com/glossary/append): Adds one item to the end of a list.
- [Argument](https://www.ask-codey.com/glossary/argument): The actual value you hand to a function when you call it.
- [AssertionError](https://www.ask-codey.com/glossary/assertionerror): The error Python raises when an assert's condition is False; it carries the assert's message.
- [Bin](https://www.ask-codey.com/glossary/bin-python): One range of values in a histogram, such as $5 to $10; its bar's height is how many values fall in it.
- [break](https://www.ask-codey.com/glossary/break): Stops a loop immediately.
- [Breakpoint](https://www.ask-codey.com/glossary/breakpoint-python): A mark on a line, the red dot in VS Code's margin, that pauses a program under the debugger before that line runs.
- [Causation](https://www.ask-codey.com/glossary/causation): One thing making another happen. Showing it takes more than two things moving together, usually a test that changes one thing at a time.
- [Command-Line Argument](https://www.ask-codey.com/glossary/command-line-argument-python): A word typed after a Python script's name when it's started, which the script reads from sys.argv or with argparse.
- [continue](https://www.ask-codey.com/glossary/continue): Skips to the next pass of the loop.
- [Data Analysis](https://www.ask-codey.com/glossary/data-analysis): Answering questions with numbers from a table of data, such as which store sold the most last month.
- [Debugger](https://www.ask-codey.com/glossary/debugger-python): A tool, such as the one in VS Code's Python extension, that pauses a running program so you can step through it and look at its variables.
- [def](https://www.ask-codey.com/glossary/def): The keyword that starts a function definition: def, the function's name, parentheses and a colon, read "define".
- [Default Parameter Value](https://www.ask-codey.com/glossary/default-parameter-value): A value a parameter uses when the caller leaves that argument out.
- [Dictionary](https://www.ask-codey.com/glossary/dictionary): Stores values under keys so you can look them up by name.
- [Docstring](https://www.ask-codey.com/glossary/docstring): A triple-quoted note under a function line that explains what it does.
- [DPI](https://www.ask-codey.com/glossary/dpi): Dots per inch: how many pixels each inch of a saved picture becomes, so 10 inches at 150 dpi is 1500 pixels wide.
- [Duplicate Row](https://www.ask-codey.com/glossary/duplicate-row): A row that repeats an earlier one, in every column or in the columns that make two rows the same event.
- [enumerate()](https://www.ask-codey.com/glossary/enumerate): Gives each item in a loop along with its position number.
- [Execution Count](https://www.ask-codey.com/glossary/execution-count): The number beside a notebook cell, such as \[4\]: this was the fourth cell run since the kernel started.
- [File Mode](https://www.ask-codey.com/glossary/file-mode): Tells open() what you plan to do: "r" read, "w" write, "a" add to the end.
- [FileNotFoundError](https://www.ask-codey.com/glossary/filenotfounderror): The error Python stops with when it's asked to read a file that isn't there, most often because the name is misspelled or the terminal is in another folder.
- [fit()](https://www.ask-codey.com/glossary/fit): The scikit-learn method that trains a model on examples: model.fit(X, y) learns from the features X and the labels y.
- [for Loop](https://www.ask-codey.com/glossary/for-loop): Repeats code once for each item in a collection.
- [from … import](https://www.ask-codey.com/glossary/from-import): Brings in just the names you want from a module.
- [Function](https://www.ask-codey.com/glossary/function-python): A named block of code, written once with def and run whenever a line calls its name with parentheses.
- [Global Variable](https://www.ask-codey.com/glossary/global-variable): A variable created outside any function, readable anywhere in the file.
- [head()](https://www.ask-codey.com/glossary/head-python): A pandas method that shows a DataFrame's first rows, five unless you ask for another number; tail() shows the last.
- [Histogram](https://www.ask-codey.com/glossary/histogram): A chart of touching bars that counts how many values fall in each range, to show how one column's values are spread.
- [Immutable](https://www.ask-codey.com/glossary/immutable): Can't be changed after it is created, like a string or tuple.
- [import](https://www.ask-codey.com/glossary/import): Brings a module into your file so you can use it.
- [Infinite Loop](https://www.ask-codey.com/glossary/infinite-loop): A loop that never stops because its condition never becomes false.
- [info()](https://www.ask-codey.com/glossary/info): A pandas method that lists every column of a DataFrame with its dtype and how many values are there, which shows the gaps.
- [isna()](https://www.ask-codey.com/glossary/isna): A pandas method that answers True for each missing value and False for the rest; isna().sum() counts them.
- [items()](https://www.ask-codey.com/glossary/items): A dictionary method that gives each key with its value, one pair at a time, so a loop can name both halves.
- [join()](https://www.ask-codey.com/glossary/join): Glues a list of strings into one string with a separator between them.
- [Kernel](https://www.ask-codey.com/glossary/kernel-python): The Python program that runs a notebook's cells and remembers every name they make, in the order they ran.
- [KeyError](https://www.ask-codey.com/glossary/keyerror): The error Python raises when a dictionary is asked for a key it doesn't have; its message names the missing key.
- [Key-Value Pair](https://www.ask-codey.com/glossary/key-value-pair): One entry in a dictionary: a key and the value stored under it.
- [Keyword Argument](https://www.ask-codey.com/glossary/keyword-argument): An argument passed by naming the parameter, like size="large".
- [Legend](https://www.ask-codey.com/glossary/legend-python): A chart's small key that names each line or set of bars beside a sample of it; matplotlib draws it with ax.legend(), needed only when there's more than one.
- [List](https://www.ask-codey.com/glossary/list): An ordered collection in square brackets that you can add to and change.
- [List Index](https://www.ask-codey.com/glossary/list-index): An item's position in a list, counting from 0.
- [Local Variable](https://www.ask-codey.com/glossary/local-variable): A variable created inside a function; it only exists inside that function.
- [Long Format](https://www.ask-codey.com/glossary/long-format): A table with one row for each value and one column for each kind of value, such as student, quiz and score: simple to filter and group.
- [Marker](https://www.ask-codey.com/glossary/marker-python): The small shape a line chart draws at each point, such as a circle or a square, which tells lines apart without color.
- [math Module](https://www.ask-codey.com/glossary/math-module): A standard module with square roots, pi and other math tools.
- [Membership Operator (in)](https://www.ask-codey.com/glossary/membership-operator-in): in checks whether a value is inside a collection.
- [min() and max()](https://www.ask-codey.com/glossary/min-and-max): Give the smallest and largest value.
- [Misleading Chart](https://www.ask-codey.com/glossary/misleading-chart): A chart that leaves the reader believing something false, often with every number right, through its axis, scale or colors.
- [Module](https://www.ask-codey.com/glossary/module): A Python file whose code you can use in another file.
- [ModuleNotFoundError](https://www.ask-codey.com/glossary/modulenotfounderror): The error Python gives when an import names a package the Python running the code doesn't have installed.
- [Mutable](https://www.ask-codey.com/glossary/mutable): Can be changed after it is created, like a list or dictionary.
- [NaN](https://www.ask-codey.com/glossary/nan-python): Read "not a number": pandas' mark for a missing value in a table.
- [Negative Index](https://www.ask-codey.com/glossary/negative-index): An index that counts from the end: -1 is the last item.
- [Nested List](https://www.ask-codey.com/glossary/nested-list): A list inside another list, like rows and columns.
- [Nested Loop](https://www.ask-codey.com/glossary/nested-loop): A loop inside another loop.
- [nunique()](https://www.ask-codey.com/glossary/nunique): A pandas method that counts how many different values a column holds.
- [open()](https://www.ask-codey.com/glossary/open): Opens a file so you can read from it or write to it.
- [Outlier](https://www.ask-codey.com/glossary/outlier): A real reading far from the usual ones, such as a storm's strongest gust; unlike a mistake, it's true, so it stays in the data.
- [Parameter](https://www.ask-codey.com/glossary/parameter): A name in a function definition for a value the function needs.
- [pass](https://www.ask-codey.com/glossary/pass): Does nothing. A placeholder where Python needs at least one line.
- [Percentile](https://www.ask-codey.com/glossary/percentile): The value a given share of the data sits at or below: 90% of the rents are at or under the 90th percentile.
- [Pivot Table](https://www.ask-codey.com/glossary/pivot-table): A summary laid out as a grid: one column's values down the side, another's across the top, and a total, count or average in every square.
- [pop()](https://www.ask-codey.com/glossary/pop): Removes an item from a list and hands it back (the last one by default).
- [Positional Argument](https://www.ask-codey.com/glossary/positional-argument): An argument matched to a parameter by its position in the call.
- [predict()](https://www.ask-codey.com/glossary/predict): The scikit-learn method that uses a fitted model to guess the label for each row of new features: model.predict(X).
- [PyPI](https://www.ask-codey.com/glossary/pypi): The Python Package Index at pypi.org, the public library of packages that pip downloads and installs from.
- [random Module](https://www.ask-codey.com/glossary/random-module): A standard module for random numbers and picks.
- [range()](https://www.ask-codey.com/glossary/range): Makes a series of numbers, usually to repeat something a set number of times.
- [read()](https://www.ask-codey.com/glossary/read): Reads a whole open file into one string.
- [read_csv()](https://www.ask-codey.com/glossary/read-csv): pd.read_csv loads a CSV file into a DataFrame; usecols, nrows and sep choose the columns, the rows and the separator.
- [Recursion](https://www.ask-codey.com/glossary/recursion): A function calling itself to solve a smaller piece of the same problem.
- [Restart and Run All](https://www.ask-codey.com/glossary/restart-and-run-all): Stopping a notebook's kernel, then running every cell once from top to bottom, so the results are the ones the file really gives.
- [Return Value](https://www.ask-codey.com/glossary/return-value): The result a function hands back with return.
- [Sample Size](https://www.ask-codey.com/glossary/sample-size): How many observations a number rests on, such as the 18 sessions behind a rate; the smaller it is, the further a few rows can move the number.
- [savefig()](https://www.ask-codey.com/glossary/savefig): A matplotlib Figure method that saves the whole chart, or page of charts, as an image file such as a PNG or SVG; the file's ending picks the format.
- [Scatter Plot](https://www.ask-codey.com/glossary/scatter-plot): A chart with one dot for each row, one number across and one up, that shows whether the two numbers move together.
- [scikit-learn](https://www.ask-codey.com/glossary/scikit-learn): The Python package for machine learning: ready-made models, tools to split and prepare data, and scores; installed as scikit-learn, imported as sklearn.
- [Scope](https://www.ask-codey.com/glossary/scope): Where in the code a variable can be used.
- [Set](https://www.ask-codey.com/glossary/set): A collection with no duplicates and no set order.
- [Short-Circuit Evaluation](https://www.ask-codey.com/glossary/short-circuit-evaluation): Python stops checking an and/or as soon as it knows the answer.
- [Slicing](https://www.ask-codey.com/glossary/slicing): Taking a piece of a list or string with \[start:stop\].
- [sort()](https://www.ask-codey.com/glossary/sort): Puts a list in order, changing the list itself.
- [sort_values()](https://www.ask-codey.com/glossary/sort-values): A pandas method that puts a table's rows in order by one column or several, with ascending= for each one's direction.
- [sorted()](https://www.ask-codey.com/glossary/sorted): Gives back a new sorted list and leaves the original alone.
- [split()](https://www.ask-codey.com/glossary/split): Breaks a string into a list of pieces.
- [Standard Library](https://www.ask-codey.com/glossary/standard-library): The modules that come with Python, ready to import.
- [strip()](https://www.ask-codey.com/glossary/strip): Removes spaces from both ends of a string.
- [sum()](https://www.ask-codey.com/glossary/sum): Adds up all the numbers in a list.
- [Tick Label](https://www.ask-codey.com/glossary/tick-label): One of the small labels along a chart's axis, such as a date or a number, that marks a place on the scale.
- [Time Series](https://www.ask-codey.com/glossary/time-series): Values recorded over time, one for each date or moment, such as daily sales or hourly temperatures.
- [to_csv()](https://www.ask-codey.com/glossary/to-csv): A pandas method that saves a table as a CSV file; index=False leaves the row labels out.
- [train_test_split()](https://www.ask-codey.com/glossary/train-test-split): scikit-learn's function that shuffles rows and splits them into a training part and a test part; test_size sets the share held back.
- [Truncated Axis](https://www.ask-codey.com/glossary/truncated-axis): A chart axis that starts above zero; on a bar chart it makes small differences look large.
- [Tuple](https://www.ask-codey.com/glossary/tuple): A list that can't be changed once made, written with round brackets.
- [Tuple Unpacking](https://www.ask-codey.com/glossary/tuple-unpacking): Putting each item of a tuple into its own variable in one line.
- [unique()](https://www.ask-codey.com/glossary/unique): A pandas method that lists each different value in a column once, in the order it first appears.
- [upper() and lower()](https://www.ask-codey.com/glossary/upper-and-lower): Give an all-caps or all-lowercase copy of a string.
- [value_counts()](https://www.ask-codey.com/glossary/value-counts): A pandas method that counts how many rows hold each value of a column, most common first; normalize=True gives shares instead.
- [ValueError](https://www.ask-codey.com/glossary/valueerror): The exception Python raises for a value of the right type that can't be used, such as float("two").
- [while Loop](https://www.ask-codey.com/glossary/while-loop): Keeps repeating as long as its condition stays true.
- [Wide Format](https://www.ask-codey.com/glossary/wide-format): A table that spreads one kind of value across many columns, such as a column for each quiz: quick for people to read.
- [with Statement](https://www.ask-codey.com/glossary/with-statement): Opens something, like a file, and closes it for you when the block ends.
- [write()](https://www.ask-codey.com/glossary/write): Puts text into an open file.
- [zip()](https://www.ask-codey.com/glossary/zip): Pairs up items from two or more lists so you can loop through them together.

## Journeyman

- [\_\_init\_\_ (Constructor)](https://www.ask-codey.com/glossary/init-constructor): Runs automatically when an object is created and sets up its starting data.
- [\_\_init\_\_.py](https://www.ask-codey.com/glossary/init-py): A file that marks a folder as a Python package.
- [\_\_str\_\_ and \_\_repr\_\_](https://www.ask-codey.com/glossary/str-and-repr): Control how an object looks when printed (\_\_str\_\_) and when debugging (\_\_repr\_\_).
- [agg()](https://www.ask-codey.com/glossary/agg): A pandas method that works out several summaries for each group at once, such as a sum, a mean and a count, and hands them back as one table.
- [annotate()](https://www.ask-codey.com/glossary/annotate): A matplotlib method that writes a note on a chart with an arrow pointing at one value: xy is the point, xytext where the words sit.
- [apply()](https://www.ask-codey.com/glossary/apply-python): A pandas method that runs a function, or a lambda, on every value of a column, one at a time.
- [argparse](https://www.ask-codey.com/glossary/argparse): Python's standard module that reads a script's command-line arguments into positional arguments, options and flags, checks them and writes a --help page.
- [assert](https://www.ask-codey.com/glossary/assert): Checks that something is true, and stops with an error if not.
- [astype()](https://www.ask-codey.com/glossary/astype): A pandas method that turns a column into another type, such as text into whole numbers, and stops if any value can't be converted.
- [Attribute](https://www.ask-codey.com/glossary/attribute): A piece of data that belongs to an object, reached with a dot.
- [autoreload](https://www.ask-codey.com/glossary/autoreload): A notebook kernel's tool that reloads a changed module before each cell runs, turned on with %load_ext autoreload and %autoreload 2.
- [Axes](https://www.ask-codey.com/glossary/axes): In matplotlib, one chart on a Figure: the area with the data and the two axes it's measured against.
- [bar_label()](https://www.ask-codey.com/glossary/bar-label): The matplotlib Axes method that writes each bar's value at its end, given the bars ax.bar or ax.barh handed back.
- [between()](https://www.ask-codey.com/glossary/between): A pandas method that answers True for each value from a low number to a high one, both ends included, and False for a value outside it or a missing one.
- [Boolean Mask](https://www.ask-codey.com/glossary/boolean-mask): A column of True and False answers, one per row, made by a comparison; df\[mask\] keeps the rows where it's True.
- [Built-in Exceptions](https://www.ask-codey.com/glossary/built-in-exceptions): The error types Python already has, like ValueError and KeyError.
- [capsys](https://www.ask-codey.com/glossary/capsys): A fixture pytest has built in that catches what code prints while a test runs; capsys.readouterr().out is the printed text.
- [Chained Comparison](https://www.ask-codey.com/glossary/chained-comparison): Several comparisons in one go, like 18 &lt;= age &lt; 65.
- [Class](https://www.ask-codey.com/glossary/class): A blueprint for making objects that bundle data with actions.
- [Class Attribute](https://www.ask-codey.com/glossary/class-attribute): Data shared by every object made from a class.
- [Classification Report](https://www.ask-codey.com/glossary/classification-report): scikit-learn's printed table of precision, recall, F1 score and support for every class, with accuracy and averages below.
- [Colorblind-Friendly Palette](https://www.ask-codey.com/glossary/colorblind-friendly-palette): A set of colors chosen to stay different for most color-blind readers, such as matplotlib's tableau-colorblind10 style.
- [concat()](https://www.ask-codey.com/glossary/concat): pd.concat stacks tables that share their columns, one under the other; ignore_index=True numbers the stacked rows from 0 again.
- [Conditional Expression](https://www.ask-codey.com/glossary/conditional-expression): Picks one of two values in one line: this if condition else that.
- [conftest.py](https://www.ask-codey.com/glossary/conftest-py): A file pytest reads before it runs the tests in its folder, for set-up every test there shares, such as choosing matplotlib's Agg backend.
- [Correlation](https://www.ask-codey.com/glossary/correlation): How closely two columns move together, as a number from -1 to 1; near 0 means no straight-line pattern. It doesn't show that one causes the other.
- [crosstab()](https://www.ask-codey.com/glossary/crosstab): pd.crosstab counts how often each combination of two columns' values happens; normalize="index" turns each row into shares.
- [csv Module](https://www.ask-codey.com/glossary/csv-module): Python's built-in module for reading and writing CSV files: csv.reader and csv.DictReader read the rows, csv.writer and csv.DictWriter write them.
- [Custom Exception](https://www.ask-codey.com/glossary/custom-exception): Your own error type, named for exactly what went wrong.
- [cut()](https://www.ask-codey.com/glossary/cut-python): pd.cut sorts numbers into labeled bands, such as budget, mid and premium, from a list of edges.
- [DataFrame](https://www.ask-codey.com/glossary/dataframe): pandas' table: named columns, and a label for each row called its index, like one sheet of a spreadsheet inside a program.
- [DataFrame.plot()](https://www.ask-codey.com/glossary/dataframe-plot): The pandas method that draws a DataFrame or Series as a chart with matplotlib (kind= picks which) and hands back the Axes it drew on.
- [Date Format Code](https://www.ask-codey.com/glossary/date-format-code): A code such as %m (month), %d (day) or %Y (four-digit year) that describes one piece of how a date is written, as in "%m/%d/%Y".
- [datetime Module](https://www.ask-codey.com/glossary/datetime-module): A standard module for working with dates and times.
- [Debugger (pdb)](https://www.ask-codey.com/glossary/debugger-pdb): A tool that pauses your program so you can inspect it line by line.
- [Deep Copy](https://www.ask-codey.com/glossary/deep-copy): A copy of a collection and everything inside it, fully separate.
- [describe()](https://www.ask-codey.com/glossary/describe): A pandas method that sums up each number column: count, mean, standard deviation, min, the quartiles and max.
- [Dictionary Comprehension](https://www.ask-codey.com/glossary/dictionary-comprehension): Builds a new dictionary in a single line.
- [drop_duplicates()](https://www.ask-codey.com/glossary/drop-duplicates): A pandas method that hands back the table without its repeated rows; subset names the columns to compare and keep which copy stays.
- [dropna()](https://www.ask-codey.com/glossary/dropna): A pandas method that hands back the table without the rows that have missing values, or only those missing the columns named in subset.
- [dt accessor](https://www.ask-codey.com/glossary/dt-accessor): Read "dot d t": the date tools of a pandas date column, such as year, month, day_name() and hour, each working on every row at once.
- [dtype](https://www.ask-codey.com/glossary/dtype): Short for data type: the kind of value every row of a pandas column holds, such as int64, float64 or str.
- [DummyClassifier](https://www.ask-codey.com/glossary/dummyclassifier): A scikit-learn model that ignores the features and guesses by a simple rule, the most common class by default, to give a baseline.
- [DummyRegressor](https://www.ask-codey.com/glossary/dummyregressor): A scikit-learn model that ignores the features and always guesses one number, the training average by default, to give a baseline.
- [Dunder Method](https://www.ask-codey.com/glossary/dunder-method): A method with double underscores, like \_\_len\_\_, that Python calls for you.
- [duplicated()](https://www.ask-codey.com/glossary/duplicated): A pandas method that answers True for each row that repeats a row above it, on every column or on a subset.
- [Encapsulation](https://www.ask-codey.com/glossary/encapsulation): Keeping an object's data behind its methods so it's changed the safe way.
- [Environment Variable](https://www.ask-codey.com/glossary/environment-variable): A setting stored outside your code, the safe place for passwords and keys.
- [Estimator](https://www.ask-codey.com/glossary/estimator): scikit-learn's word for any object that learns from data with a fit method, such as LinearRegression or StandardScaler.
- [Exception](https://www.ask-codey.com/glossary/exception): Python's way of reporting an error while a program runs.
- [Exception Chaining (raise … from)](https://www.ask-codey.com/glossary/exception-chaining-raise-from): Raising a clearer error while keeping the original attached (raise ... from).
- [Exploratory Data Analysis](https://www.ask-codey.com/glossary/exploratory-data-analysis): Looking around a new dataset to learn what's in it before answering a question: its size, columns, gaps and odd values. Often shortened to EDA.
- [Fairlearn](https://www.ask-codey.com/glossary/fairlearn): A Python package for checking and improving a model's fairness, with MetricFrame for scores by group and gap measures such as demographic parity.
- [Figure](https://www.ask-codey.com/glossary/figure-python): In matplotlib, the whole image that gets saved, like a sheet of paper with one or more charts drawn on it.
- [fillna()](https://www.ask-codey.com/glossary/fillna): A pandas method that puts a stand-in, such as "Unknown" or a median, into every missing value.
- [filter()](https://www.ask-codey.com/glossary/filter): Keeps only the items that pass a test.
- [finally](https://www.ask-codey.com/glossary/finally): Runs after try/except no matter what, for clean-up.
- [fit_predict()](https://www.ask-codey.com/glossary/fit-predict): The scikit-learn method that fits a model and hands back its answers for the same rows in one call, as KMeans uses it.
- [glob()](https://www.ask-codey.com/glossary/glob-python): A pathlib method that finds the files in a folder whose names match a pattern, where \* stands for any text, such as week-\*.csv.
- [groupby()](https://www.ask-codey.com/glossary/groupby-python): The pandas method that sorts a table's rows into groups by a column's value, so each group can be totaled or averaged on its own.
- [Higher-Order Function](https://www.ask-codey.com/glossary/higher-order-function): A function that takes or returns another function.
- [Identity vs Equality (is vs ==)](https://www.ask-codey.com/glossary/identity-vs-equality-is-vs): == checks equal values; is checks the very same object.
- [iloc](https://www.ask-codey.com/glossary/iloc): Read "i loc": pandas' way to pick rows and columns by position, counting from 0; a slice stops before its end.
- [Imputation](https://www.ask-codey.com/glossary/imputation): Filling in missing values with stand-ins worked out from the data, such as a median; the statistics-class name for it.
- [Index](https://www.ask-codey.com/glossary/index-python): The labels of a pandas Series or DataFrame, one for each value or row, used to find them; without labels of your own, they count from 0.
- [Inheritance](https://www.ask-codey.com/glossary/inheritance): A new class starts with everything from another class, then adds or changes things.
- [Instance](https://www.ask-codey.com/glossary/instance): One object made from a class, with its own data.
- [ipykernel](https://www.ask-codey.com/glossary/ipykernel): The package that lets VS Code run a notebook's cells with a virtual environment's Python; it goes in each project's requirements.txt.
- [isin()](https://www.ask-codey.com/glossary/isin): A pandas method that answers True for each value found in a list, such as the categories boots or jackets.
- [Iterable](https://www.ask-codey.com/glossary/iterable): Anything you can loop over with for.
- [joblib](https://www.ask-codey.com/glossary/joblib): A Python package whose dump() and load() save a trained model to a file and read it back; scikit-learn's usual way to save models.
- [json Module](https://www.ask-codey.com/glossary/json-module): Turns Python data into JSON text and back.
- [KMeans](https://www.ask-codey.com/glossary/kmeans): scikit-learn's k-means: KMeans(n_clusters=3) learns the centers with fit(), and labels\_ says which cluster each row is in.
- [Lambda Function](https://www.ask-codey.com/glossary/lambda-function): A small, nameless one-line function.
- [List Comprehension](https://www.ask-codey.com/glossary/list-comprehension): Builds a new list from another collection in a single line.
- [Literal Type](https://www.ask-codey.com/glossary/literal-type-python): A type hint from Python's typing module that lists the only values allowed, such as Literal\["dog", "cat", "rabbit"\], matched exactly.
- [loc](https://www.ask-codey.com/glossary/loc): pandas' way to pick rows and columns by their labels, as df.loc\[rows, columns\]; a label slice includes its end.
- [logging Module](https://www.ask-codey.com/glossary/logging-module): A standard module that records what your program does, with levels.
- [Magic Command](https://www.ask-codey.com/glossary/magic-command): A line that starts with %, such as %autoreload 2: an instruction to a notebook's kernel, not Python, so it works only in a notebook.
- [Main Guard (if \_\_name\_\_ == "\_\_main\_\_")](https://www.ask-codey.com/glossary/main-guard-if-name-main): Runs code only when the file is run directly, not when imported.
- [make_pipeline()](https://www.ask-codey.com/glossary/make-pipeline): scikit-learn's shortcut that builds a Pipeline from the steps alone, naming each one after its class, such as standardscaler.
- [map()](https://www.ask-codey.com/glossary/map): Runs a function on every item in a collection.
- [matplotlib](https://www.ask-codey.com/glossary/matplotlib): The Python package most charts are drawn with: a Figure holds one or more Axes, and each Axes is one chart.
- [merge()](https://www.ask-codey.com/glossary/merge-python): A pandas method that joins two tables side by side by a key column they share, the job a spreadsheet's VLOOKUP does; how= says which rows that don't match are kept.
- [Method](https://www.ask-codey.com/glossary/method): A function that belongs to a class, called on an object with a dot.
- [Method Chaining](https://www.ask-codey.com/glossary/method-chaining-python): Writing several pandas steps as one expression, one method per line, each working on the table the step before it returned.
- [Method Overriding](https://www.ask-codey.com/glossary/method-overriding): A child class writing its own version of an inherited method.
- [Namespace](https://www.ask-codey.com/glossary/namespace): A set of names kept separate so they do not clash.
- [NaT](https://www.ask-codey.com/glossary/nat): Read "not a time": pandas' mark for a missing date or length of time.
- [nbconvert](https://www.ask-codey.com/glossary/nbconvert): The Jupyter tool that converts a notebook to other formats: jupyter nbconvert --to html story.ipynb writes a web page anyone can open.
- [nlargest()](https://www.ask-codey.com/glossary/nlargest): A pandas method that gives the rows with the largest values in a column, such as the three most-reviewed products.
- [np.where()](https://www.ask-codey.com/glossary/np-where): A NumPy function that gives each row one of two values: the first where a condition is True, the second where it's False.
- [NumPy](https://www.ask-codey.com/glossary/numpy): The Python library for fast math on arrays of numbers; pandas keeps every column's values in a NumPy array.
- [NumPy Array](https://www.ask-codey.com/glossary/numpy-array): NumPy's container (ndarray): many values of one type, packed side by side, that does math on all of them at once.
- [OneHotEncoder](https://www.ask-codey.com/glossary/onehotencoder): scikit-learn's tool for one-hot encoding: it learns each column's categories with fit() and makes a 0-or-1 column for each.
- [openpyxl](https://www.ask-codey.com/glossary/openpyxl): The Python library that reads and writes Excel .xlsx files; pandas uses it behind read_excel, so it must be installed.
- [OrdinalEncoder](https://www.ask-codey.com/glossary/ordinalencoder): scikit-learn's tool that turns each category into a number, 0, 1, 2 and so on, in an order you can set, such as small, medium, large.
- [Package](https://www.ask-codey.com/glossary/package): A folder of related modules you can import from.
- [pandas](https://www.ask-codey.com/glossary/pandas): The Python package for tables of data: it reads a CSV file into a DataFrame, then sorts, filters, totals and charts it in a line or two.
- [pathlib](https://www.ask-codey.com/glossary/pathlib): Python's standard module for file and folder paths: a Path holds an address in parts, joins them with / and reads a file's name, stem, suffix and parent.
- [Pattern Matching (match/case)](https://www.ask-codey.com/glossary/pattern-matching-match-case): match/case: compares a value against patterns and runs the first that fits.
- [PEP 8](https://www.ask-codey.com/glossary/pep-8): Python's official style guide for how code should look.
- [pickle](https://www.ask-codey.com/glossary/pickle): Python's built-in module that turns objects, a trained model included, into bytes and back; never load a pickle you don't trust.
- [pip](https://www.ask-codey.com/glossary/pip): The tool that installs Python packages from the internet.
- [pip-audit](https://www.ask-codey.com/glossary/pip-audit): A command that checks a project's packages against a public list of known security holes, and names the version that fixes each.
- [Pipeline](https://www.ask-codey.com/glossary/pipeline-python): A scikit-learn object that chains preparing steps and a model into one, so fit() and predict() run every step in order.
- [pivot_table()](https://www.ask-codey.com/glossary/pivot-table-python): The pandas method that builds a pivot table from index, columns, values and aggfunc, with fill_value for empty squares and margins for totals.
- [plt.close()](https://www.ask-codey.com/glossary/plt-close): Closes a matplotlib figure so pyplot stops keeping it in memory; a test calls plt.close(fig) when it has read the chart.
- [Polymorphism](https://www.ask-codey.com/glossary/polymorphism): Different objects answering the same method call in their own way.
- [predict_proba()](https://www.ask-codey.com/glossary/predict-proba): The scikit-learn method that gives, for each row, the classifier's probability for every class, in the order of classes\_.
- [Private Attribute (\_name)](https://www.ask-codey.com/glossary/private-attribute-name): An attribute starting with \_ that others should leave alone.
- [pytest](https://www.ask-codey.com/glossary/pytest): The most popular Python testing tool: test functions with plain assert.
- [pytest.raises](https://www.ask-codey.com/glossary/pytest-raises): pytest's way to make sure code raises an error: a test passes only when the code inside with pytest.raises(...) raises that error.
- [Quartile](https://www.ask-codey.com/glossary/quartile): One of the values that cut sorted data into quarters: 25% of the values are at or below the first, half at or below the second (the median).
- [raise](https://www.ask-codey.com/glossary/raise): Triggers an exception on purpose.
- [raise_for_status()](https://www.ask-codey.com/glossary/raise-for-status): A requests response method that raises an HTTPError when the status code is from 400 to 599, and does nothing otherwise.
- [Random Seed](https://www.ask-codey.com/glossary/random-seed): The starting number for Python's random numbers: the same seed gives the same "random" results on every run, which is what tests need.
- [read_excel()](https://www.ask-codey.com/glossary/read-excel): pd.read_excel loads a sheet of an Excel workbook into a DataFrame; sheet_name picks the sheet and skiprows steps over title rows.
- [read_json()](https://www.ask-codey.com/glossary/read-json): pd.read_json loads JSON into a DataFrame, a row for each record; lines=True reads JSON Lines.
- [Regular Expression](https://www.ask-codey.com/glossary/regular-expression): A pattern for finding or checking text.
- [rename()](https://www.ask-codey.com/glossary/rename): A pandas method that hands back a table with new column names, given a dictionary of old name to new name in columns=.
- [requests](https://www.ask-codey.com/glossary/requests): The Python package most programs use to call web APIs: requests.get sends a request and gives back a response to read.
- [requirements.txt](https://www.ask-codey.com/glossary/requirements-txt): A file listing the packages a project needs.
- [reset_index()](https://www.ask-codey.com/glossary/reset-index): A pandas method that numbers a table's rows 0, 1, 2 again, moving the old row labels, such as a groupby's groups, into a column, or dropping them with drop=True.
- [Ruff](https://www.ask-codey.com/glossary/ruff): A fast Python linter and formatter in one tool: ruff check finds likely mistakes such as unused imports, and ruff format lays out every file the same way.
- [self](https://www.ask-codey.com/glossary/self): The object a method is working on, passed in automatically.
- [Series](https://www.ask-codey.com/glossary/series): One column of a pandas table, with the table's row labels; its methods, such as sum() and max(), work on the whole column at once.
- [Series.map()](https://www.ask-codey.com/glossary/series-map): A pandas method that, given a dictionary, gives each value the one the dictionary pairs with it, and NaN for a value it doesn't name.
- [Series.replace()](https://www.ask-codey.com/glossary/series-replace): A pandas method that, given a dictionary, changes only the values the dictionary names and leaves every other value as it was.
- [Set Comprehension](https://www.ask-codey.com/glossary/set-comprehension): Builds a new set from another collection in a single line, written in curly braces with one expression.
- [Set Operations](https://www.ask-codey.com/glossary/set-operations): Combining sets: | both, & shared, - only in the first.
- [set_index()](https://www.ask-codey.com/glossary/set-index): A pandas method that makes a column, such as a product code, the table's row labels, so loc can find rows by it.
- [set_ylim()](https://www.ask-codey.com/glossary/set-ylim): A matplotlib method that sets where a chart's y-axis starts and ends; set_ylim(bottom=0) starts it at zero.
- [Shallow Copy](https://www.ask-codey.com/glossary/shallow-copy): A new collection that still shares the items inside it with the original.
- [Shared Axis](https://www.ask-codey.com/glossary/shared-axis): One axis scale used by charts side by side, so their bars and lines compare by eye; plt.subplots(sharey=True) makes one.
- [shutil](https://www.ask-codey.com/glossary/shutil): Python's standard module for copying and moving files and folders, such as shutil.copy2 and shutil.move; read "shell utilities".
- [SimpleImputer](https://www.ask-codey.com/glossary/simpleimputer): scikit-learn's tool that fills missing values with one value per column learned in fit(), such as the column's median.
- [Split-Apply-Combine](https://www.ask-codey.com/glossary/split-apply-combine): What a grouping does in three steps: split the rows into groups, work out one number for each group, and combine the answers into one result.
- [sqlite3.IntegrityError](https://www.ask-codey.com/glossary/sqlite3-integrityerror): The exception Python's sqlite3 module raises when a change would break a rule of the data, such as a repeated value in a UNIQUE column.
- [Standard Deviation](https://www.ask-codey.com/glossary/standard-deviation): How far values usually sit from their average; describe() shows it as std.
- [StandardScaler](https://www.ask-codey.com/glossary/standardscaler): scikit-learn's tool that standardizes features: fit() learns each column's mean and standard deviation, transform() rescales with them.
- [Step Into](https://www.ask-codey.com/glossary/step-into): The debugger's command (F11 in VS Code) that goes inside the function the highlighted line calls and pauses on its first line.
- [Step Over](https://www.ask-codey.com/glossary/step-over): The debugger's command (F10 in VS Code) that runs the highlighted line, a function call included, and pauses on the next one.
- [str accessor](https://www.ask-codey.com/glossary/str-accessor): Read "dot s t r": the string tools of a pandas text column, such as strip, lower and contains, each working on every value at once.
- [str.replace()](https://www.ask-codey.com/glossary/str-replace): A pandas text tool that swaps one piece of text for another in every value of a column, such as taking " lbs" off weights.
- [str.split()](https://www.ask-codey.com/glossary/str-split): A pandas text tool that cuts each value at a separator, a space by default; expand=True puts the pieces in columns and n limits the cuts.
- [subplots()](https://www.ask-codey.com/glossary/subplots): plt.subplots makes a Figure and its Axes in one call: one chart, or a grid such as 2 by 2 picked as axs\[row, column\].
- [super()](https://www.ask-codey.com/glossary/super): Calls a method from the parent class, usually to add to it.
- [sys.argv](https://www.ask-codey.com/glossary/sys-argv): The list of words a Python program was started with: the script's name first, then each word typed after it, all as strings.
- [Test Fixture](https://www.ask-codey.com/glossary/test-fixture): Shared setup, like sample data, that tests can use.
- [Third-Party Library](https://www.ask-codey.com/glossary/third-party-library): Code written by others that you install with pip.
- [Tidy Data](https://www.ask-codey.com/glossary/tidy-data): The textbook name for a table where each row is one observation and each column is one kind of value.
- [Timedelta](https://www.ask-codey.com/glossary/timedelta): pandas' type for a length of time, such as 60 days 16 hours or 27 minutes 15 seconds; subtracting two dates gives one.
- [Timestamp](https://www.ask-codey.com/glossary/timestamp): pandas' type for one date and time, such as 2026-08-03 07:40; a datetime64 column holds one per row.
- [tmp_path](https://www.ask-codey.com/glossary/tmp-path): A fixture pytest has built in: a new, empty folder for one test, where it can write files without touching the project.
- [to_datetime()](https://www.ask-codey.com/glossary/to-datetime): pd.to_datetime turns text into dates; format= says how they were written, and errors="coerce" makes each date it can't read NaT.
- [to_excel()](https://www.ask-codey.com/glossary/to-excel): A pandas method that saves a table as an Excel workbook (.xlsx), using the openpyxl package.
- [to_html()](https://www.ask-codey.com/glossary/to-html): A pandas method that gives back a table as HTML text, ready to put in a web page; index=False leaves out the row numbers.
- [to_numeric()](https://www.ask-codey.com/glossary/to-numeric): pd.to_numeric turns a column of text into numbers; with errors="coerce", each value it can't read becomes NaN.
- [to_period()](https://www.ask-codey.com/glossary/to-period): A .dt method that turns each date into the period it falls in, such as its month, so rows can be grouped by month.
- [to_timedelta()](https://www.ask-codey.com/glossary/to-timedelta): pd.to_timedelta turns text such as "0:27:15" (hours:minutes:seconds) into a Timedelta, a length of time.
- [total_seconds()](https://www.ask-codey.com/glossary/total-seconds): A Timedelta method (.dt.total_seconds() on a column) that gives the length of time as a number of seconds.
- [try and except](https://www.ask-codey.com/glossary/try-and-except): try runs code that might fail; except catches the error instead of crashing.
- [Unit Test (unittest)](https://www.ask-codey.com/glossary/unit-test-unittest): Code that checks one function gives the right answer.
- [Vectorized Operation](https://www.ask-codey.com/glossary/vectorized-operation): Math done on a whole array or column at once, with no loop of your own, such as prices \* 0.9.
- [Version Pinning](https://www.ask-codey.com/glossary/version-pinning): Writing a package's exact version in requirements.txt, such as pytest==9.2.0, so every computer installs the same one.
- [Virtual Environment](https://www.ask-codey.com/glossary/virtual-environment): A project's own private set of installed packages.
- [Walrus Operator](https://www.ask-codey.com/glossary/walrus-operator): The := operator: saves a value and uses it in the same line.

## Freelancer

- [\_\_iter\_\_ and \_\_next\_\_](https://www.ask-codey.com/glossary/iter-and-next): Methods that make your own class work in a for loop.
- [Abstract Base Class (abc)](https://www.ask-codey.com/glossary/abstract-base-class-abc): A class you cannot use directly; it lists methods every child must write.
- [Agg Backend](https://www.ask-codey.com/glossary/agg-backend): The matplotlib backend that draws charts in memory with no window, so chart tests run on a computer with no screen.
- [assert_frame_equal()](https://www.ask-codey.com/glossary/assert-frame-equal): pd.testing.assert_frame_equal compares two DataFrames in a test: column names, order, values and types, and says which column differs when they don't match.
- [assign()](https://www.ask-codey.com/glossary/assign): A pandas method that hands back a new table with a column added or replaced, often with a lambda that gets the table at that step.
- [async and await](https://www.ask-codey.com/glossary/async-and-await): async def makes a pausable function; await is where it waits without blocking.
- [asyncio](https://www.ask-codey.com/glossary/asyncio): The standard module that runs async code, doing many waits at once.
- [category dtype](https://www.ask-codey.com/glossary/category-dtype): A pandas column type for values from a short, fixed list, such as shirt sizes, stored once and optionally kept in an order of your own.
- [Class Method (@classmethod)](https://www.ask-codey.com/glossary/class-method-classmethod): A method that belongs to the class, often another way to create objects.
- [Closure](https://www.ask-codey.com/glossary/closure): An inner function that remembers the variables around it.
- [ColumnTransformer](https://www.ask-codey.com/glossary/columntransformer): A scikit-learn tool that prepares different columns in different ways, such as scaling the numbers and encoding the categories, then joins them.
- [Context Manager](https://www.ask-codey.com/glossary/context-manager): Sets something up at the start of a with block and cleans up at the end.
- [contextlib](https://www.ask-codey.com/glossary/contextlib): A standard module for writing your own context managers easily.
- [Copy-on-Write](https://www.ask-codey.com/glossary/copy-on-write): How pandas 3 handles copies: a copy shares the data until one of them changes, so copying is cheap and a chained assignment changes nothing.
- [Coroutine](https://www.ask-codey.com/glossary/coroutine): What an async def function returns: a task that can pause and resume.
- [Counter](https://www.ask-codey.com/glossary/counter): Counts how many times each item appears.
- [Dataclass](https://www.ask-codey.com/glossary/dataclass): A class for holding data; @dataclass writes \_\_init\_\_ and more for you.
- [Decorator](https://www.ask-codey.com/glossary/decorator): Wraps extra behavior around a function, applied with @name above it.
- [defaultdict](https://www.ask-codey.com/glossary/defaultdict): A dictionary that fills in a starting value for a new key automatically.
- [deque](https://www.ask-codey.com/glossary/deque): A list built for quickly adding and removing at both ends.
- [Duck Typing](https://www.ask-codey.com/glossary/duck-typing): Python cares what an object can do, not what class it is.
- [Enum](https://www.ask-codey.com/glossary/enum): A fixed set of named choices, like order statuses.
- [Generator](https://www.ask-codey.com/glossary/generator): A function that hands out values one at a time with yield.
- [Generator Expression](https://www.ask-codey.com/glossary/generator-expression): Like a list comprehension in round brackets, producing values one at a time.
- [Generic Type (TypeVar)](https://www.ask-codey.com/glossary/generic-type-typevar): Lets code work with any type while keeping in and out types linked.
- [get_feature_names_out()](https://www.ask-codey.com/glossary/get-feature-names-out): The scikit-learn method that names each column a fitted preparing step hands back, such as species_cat and species_dog.
- [get_params()](https://www.ask-codey.com/glossary/get-params): The scikit-learn method that hands back a model's settings as a dictionary of names and values, such as max_depth: 3.
- [GridSearchCV](https://www.ask-codey.com/glossary/gridsearchcv): scikit-learn's grid search: it cross-validates every combination of the settings you list and refits the best on all the training rows.
- [GroupShuffleSplit](https://www.ask-codey.com/glossary/groupshufflesplit): A scikit-learn splitter that keeps all the rows of one group, such as one customer, on the same side of the train-test split.
- [httpx](https://www.ask-codey.com/glossary/httpx): A Python package for web requests with the same shape as requests (get, status_code, json(), raise_for_status()), which can also send many requests at once.
- [Iterator](https://www.ask-codey.com/glossary/iterator): Gives out items one at a time with next() and remembers where it is.
- [itertools](https://www.ask-codey.com/glossary/itertools): A standard module of ready-made looping tools.
- [Job Queue](https://www.ask-codey.com/glossary/job-queue-python): A separate program that keeps background work in a store of its own, runs it in workers apart from the web server and retries it, such as Celery or RQ.
- [json_normalize()](https://www.ask-codey.com/glossary/json-normalize): pd.json_normalize turns nested JSON data into a flat table: record_path names the list whose items become rows, meta the fields copied onto each.
- [Logging Levels](https://www.ask-codey.com/glossary/logging-levels): How serious a log message is, from DEBUG up to CRITICAL.
- [make_column_transformer()](https://www.ask-codey.com/glossary/make-column-transformer): scikit-learn's shortcut that builds a ColumnTransformer from (tool, columns) pairs, naming each part after its tool's class.
- [melt()](https://www.ask-codey.com/glossary/melt): A pandas method that turns a wide table into a long one: the columns named in id_vars stay, and every other column becomes rows of a name and a value.
- [Memoization (lru_cache)](https://www.ask-codey.com/glossary/memoization-lru-cache): Saving a function's answers so repeat calls return instantly.
- [Mocking (unittest.mock)](https://www.ask-codey.com/glossary/mocking-unittest-mock): Swapping a real part of the program for a fake one during a test.
- [MultiIndex](https://www.ask-codey.com/glossary/multiindex): Row labels on two or more levels, such as a neighborhood and a pizza size, which pandas makes when it groups by two columns.
- [Multiprocessing](https://www.ask-codey.com/glossary/multiprocessing): Runs work in separate processes so heavy calculations run in parallel.
- [Mutable Default Argument](https://www.ask-codey.com/glossary/mutable-default-argument): A default like \[\] is shared by every call. Use None and make a new one inside.
- [mypy](https://www.ask-codey.com/glossary/mypy): A tool that checks your type hints and warns about type mistakes.
- [Named Aggregation](https://www.ask-codey.com/glossary/named-aggregation): Writing agg as name=(column, summary), so each summary becomes a column with the name you chose, from the column you chose.
- [Named Tuple](https://www.ask-codey.com/glossary/named-tuple): A tuple whose items also have names.
- [nonlocal](https://www.ask-codey.com/glossary/nonlocal): Lets an inner function change a variable from the function around it.
- [Optional (typing)](https://www.ask-codey.com/glossary/optional-typing): In a type hint: the value can be that type or None.
- [Parametrized Test](https://www.ask-codey.com/glossary/parametrized-test): One test run with several sets of inputs and expected answers.
- [Partial Function (functools.partial)](https://www.ask-codey.com/glossary/partial-function-functools-partial): A copy of a function with some arguments already filled in.
- [pipe()](https://www.ask-codey.com/glossary/pipe-python): A pandas method that calls your own function with the table, so a step you wrote fits into a method chain.
- [pivot()](https://www.ask-codey.com/glossary/pivot-python): A pandas method that turns a long table into a wide one from index, columns and values, and stops with an error when two rows would fill one cell.
- [Property (@property)](https://www.ask-codey.com/glossary/property-property): Lets a method be used like an attribute, with no brackets.
- [Protocol](https://www.ask-codey.com/glossary/protocol): Describes what an object must be able to do, whatever class it is.
- [pyproject.toml](https://www.ask-codey.com/glossary/pyproject-toml): One file describing a Python project: name, version, packages it needs.
- [Race Condition](https://www.ask-codey.com/glossary/race-condition): A bug where the result depends on which thread gets there first.
- [resample()](https://www.ask-codey.com/glossary/resample): A pandas method that cuts a date index into periods, such as weeks or months, and summarizes each one, keeping the periods with no rows.
- [set_params()](https://www.ask-codey.com/glossary/set-params): The scikit-learn method that changes a model's settings by name, such as tree.set_params(max_depth=5), and hands back the model.
- [SQLAlchemy](https://www.ask-codey.com/glossary/sqlalchemy): Python's most used ORM and database toolkit: tables described as classes, and queries built in Python that it turns into SQL.
- [Static Method (@staticmethod)](https://www.ask-codey.com/glossary/static-method-staticmethod): A plain function kept inside a class; it uses neither self nor the class.
- [str.extract()](https://www.ask-codey.com/glossary/str-extract): A pandas text tool that keeps the part of each value a regular expression's parentheses match, such as the digits in "about 30", and NaN where nothing matches.
- [Styler](https://www.ask-codey.com/glossary/styler): What df.style makes: the same table drawn for people, with a format for each column, such as $20.00 or 97.2%, and the index hidden if you choose.
- [Thread (threading)](https://www.ask-codey.com/glossary/thread-threading): Lets part of a program run alongside the rest, handy while waiting on things.
- [transform()](https://www.ask-codey.com/glossary/transform-python): A groupby method that works out a summary for each group and hands it back on every row of that group, lined up with the table.
- [Type Hint](https://www.ask-codey.com/glossary/type-hint): A note saying what type a value should be, used by editors and tools.
- [Union Type](https://www.ask-codey.com/glossary/union-type): A type hint saying a value can be one of several types, like int | str.
- [Unpacking Operator (\* and \*\*)](https://www.ask-codey.com/glossary/unpacking-operator-and): In a call, \* spreads a list into arguments and \*\* spreads a dictionary.
- [Wheel (package build)](https://www.ask-codey.com/glossary/wheel-package-build): A ready-to-install Python package file (.whl).
- [yield](https://www.ask-codey.com/glossary/yield): Hands back one value from a generator and pauses until the next one is needed.

## Master

- [\_\_init_subclass\_\_](https://www.ask-codey.com/glossary/init-subclass): Runs whenever a class inherits from yours; handy for tracking child classes.
- [\_\_new\_\_](https://www.ask-codey.com/glossary/new): Creates the object itself, just before \_\_init\_\_ fills it in.
- [\_\_slots\_\_](https://www.ask-codey.com/glossary/slots): Lists the only attributes a class's objects may have, saving memory.
- [Attribute Lookup (\_\_getattr\_\_)](https://www.ask-codey.com/glossary/attribute-lookup-getattr): Runs when code asks for an attribute that doesn't exist.
- [Bytecode](https://www.ask-codey.com/glossary/bytecode): The simpler instructions Python turns your code into before running it.
- [Class Decorator](https://www.ask-codey.com/glossary/class-decorator): A decorator placed on a class to change or register the whole class.
- [Context Variable (contextvars)](https://www.ask-codey.com/glossary/context-variable-contextvars): A value that belongs to the current task, so async tasks do not mix up values.
- [CPython](https://www.ask-codey.com/glossary/cpython): The standard Python you download from python.org, written in C.
- [Data Model](https://www.ask-codey.com/glossary/data-model): The dunder methods that let your objects work with len(), +, for and more.
- [Descriptor](https://www.ask-codey.com/glossary/descriptor): An object that controls reading and setting an attribute; the machinery behind @property.
- [Event Loop](https://www.ask-codey.com/glossary/event-loop): The asyncio engine that switches between tasks whenever one is waiting.
- [Garbage Collector](https://www.ask-codey.com/glossary/garbage-collector): Frees memory reference counting misses, like objects pointing only at each other.
- [Global Interpreter Lock (GIL)](https://www.ask-codey.com/glossary/global-interpreter-lock-gil): Lets only one thread run Python code at a time in standard Python.
- [Interning](https://www.ask-codey.com/glossary/interning): Python keeps one shared copy of some values, like small numbers and short strings.
- [Introspection (inspect)](https://www.ask-codey.com/glossary/introspection-inspect): A program looking at itself while it runs: types, attributes, function arguments.
- [Metaclass](https://www.ask-codey.com/glossary/metaclass): The class that builds classes, mostly used inside frameworks.
- [Method Resolution Order (MRO)](https://www.ask-codey.com/glossary/method-resolution-order-mro): The order Python searches classes to find a method.
- [Monkey Patching](https://www.ask-codey.com/glossary/monkey-patching): Replacing a function or method while the program runs.
- [Reference Counting](https://www.ask-codey.com/glossary/reference-counting): Python counts what points to an object and frees it when the count hits zero.
- [Weak Reference](https://www.ask-codey.com/glossary/weak-reference): Points to an object without keeping it alive.

[More subjects in Languages](https://www.ask-codey.com/glossary/groups/languages)

Source: https://www.ask-codey.com/glossary/subjects/python
