Python for Data Science glossary
36 terms you will meet in the free Python for Data Science course, each explained in one or two sentences.
A
- Axis
- A dimension of an array; aggregating along axis 0 collapses rows and gives one result per column.
B
- Boolean mask
- An array of True/False values used to select the matching elements or rows.
- Broadcasting
- NumPy's rule for combining arrays of different but compatible shapes by stretching size-1 dimensions.
C
- Correlation
- A number from −1 to 1 measuring the strength and direction of a linear relationship.
D
- Data leakage
- Using information in training that would not be available at prediction time.
- DataFrame
- A two-dimensional pandas table of named columns sharing one index.
- dtype
- The data type of an array's or column's values, such as int64, float64 or object.
F
- Feature
- An input variable used by a model to make predictions.
G
- groupby
- pandas' split-apply-combine operation for summarizing data by group.
H
- Histogram
- A chart showing how many values fall into each bin of a numeric range.
I
- Imputation
- Filling missing values with estimates such as the median.
- Index
- The row labels of a Series or DataFrame, used for lookup and alignment.
- Interquartile range (IQR)
- Q3 minus Q1: the spread of the middle 50% of the data.
L
- Left join
- A merge that keeps every row of the left table and adds matching data from the right.
- Linear regression
- A model that predicts a number as an intercept plus weighted sums of the features.
- loc / iloc
- pandas selectors by label (loc, end-inclusive slices) and by integer position (iloc, end-exclusive).
- Long format
- A table layout with one row per observation, preferred for grouping and plotting.
M
- Mean absolute error (MAE)
- The average absolute difference between predictions and actual values.
- Median
- The middle value of sorted data; robust to extreme values.
- Merge
- Combining two tables by matching values in key columns, like a SQL join.
N
- NaN
- "Not a number": pandas' standard marker for a missing numeric value.
- ndarray
- NumPy's array type: a grid of values that all share one dtype.
- NumPy
- A Python library for fast n-dimensional arrays and numeric operations.
O
- Outlier
- A value far from the rest of the data; it may be an error or a real rare event.
- Overfitting
- When a model learns noise in training data and performs worse on new data.
P
- pandas
- A Python library for labeled tabular data: loading, cleaning, grouping, joining and reshaping.
- Percentile
- The value below which a given percentage of observations fall.
- Pivot table
- A table that aggregates values with one key down the rows and another across the columns.
R
- R² (R-squared)
- How much better a model's squared errors are than always predicting the mean; 1 is perfect.
S
- Series
- A one-dimensional labeled array in pandas; one column of a DataFrame.
- Shape
- A tuple giving the size of an array or DataFrame along each dimension, such as (rows, columns).
- Standard deviation
- A measure of how far values typically lie from the mean.
T
- Target
- The variable a model is trained to predict.
- Train-test split
- Dividing data so a model is trained on one part and evaluated on unseen data.
V
- Vectorization
- Applying an operation to a whole array at once instead of looping over elements in Python.
Z
- Z-score
- How many standard deviations a value lies from the mean.
Put these terms to work
The Python for Data Science course uses every one of these terms in short lessons with instant-feedback questions. It takes about 170 minutes and ends with a free certificate of completion.
Start the course Course overview