Python · Module 3: Data Structures
Python data structures cheat sheet
Lists, tuples, dictionaries and sets on one page: the terms, which structure to use, the syntax at a glance, the rules and the common mistakes.
27 one-page references, one for each module of Python, Data Tools, Maths, Statistics and Machine Learning: the terms, rules and common mistakes, with the output each rule produces. Five are free to read with no account.
One module's sheet from each track, in full, written for the work you will do with it.
Python · Module 3: Data Structures
Lists, tuples, dictionaries and sets on one page: the terms, which structure to use, the syntax at a glance, the rules and the common mistakes.
Data Tools · Module 2: pandas
Selecting, filtering, sorting, grouping, merging and reshaping a table with pandas: each question, the expression that answers it, and how to read the result.
Maths · Module 4: Calculus and Optimisation
Derivatives and their rules, minima, the gradient, curvature, integrals, convexity and the backward pass: the calculus model training uses, on one page.
Statistics · Module 1: Describing Data and Reading Statistical Plots
How to describe a dataset and read its plots: what to fix before any statistic, which view answers which question, the formulas, the code and the gotchas.
Machine Learning · Module 3: Linear Regression and Gradient Descent
The fitted line, gradient descent, batch and mini-batch updates, multiple regression, conditioning, diagnostics and collinearity, with worked values from Auto MPG.
Each sheet sums up one module: the topics listed are its lessons.
Covers Why Python?, Run Your First Python Code, Variables, Keywords and Identifiers, Data Types, Input, Output and Formatting, Operators.
Covers if, elif and else, while Loops, for Loops and range, break, continue and else on Loops.
Covers Lists, Tuples, Sets, Dictionaries, Strings, Comprehensions.
Covers Defining Functions, Arguments and Scope, Recursion, Lambdas and Functions as Values.
Covers Modules and Packages, uv, Packages and Environments, Working with Files, Exceptions, Debugging, Testing with assert and pytest, Formatting, Linting and Type Checking.
Covers Classes and Objects, Dataclasses, The Estimator Pattern.
Covers Time and Space Complexity, Binary Search, Hash Tables.
Covers Why NumPy, Shape, dtype and Reshaping, Indexing, Slicing and Masks, Vectorised Operations and Broadcasting, Aggregations Along Axes, Linear Algebra in NumPy, Random Numbers and Reproducibility.
Covers Meet pandas, Series and DataFrames, Selecting and Filtering, Cleaning Data, groupby and Aggregation, Merging, Joining and Reshaping, Dates and Time Series in pandas.
Covers Why Matplotlib and seaborn, Meet Matplotlib, Matplotlib Fundamentals, Several Plots and Readable Charts, The Same Plots with seaborn.
Covers Meet scikit-learn, Estimators: fit, predict, transform, Pipelines, and Where scikit-learn Goes Next.
Covers The Maths Inside One Prediction.
Covers Functions and Their Graphs, Exponents and Logarithms, Reading ML Notation.
Covers Vectors, Vector Arithmetic and Norms, The Dot Product, Angle and Projection, Lines, Planes and Hyperplanes, Shapes and Distance in d Dimensions.
Covers Matrices, the Matrix–Vector Product and the Transpose, Matrix Multiplication as Transformation, Identity, Inverse and Singular Matrices, Linear Systems, Rank and Least Squares, Eigenvalues and Eigenvectors, Singular Value Decomposition, The Covariance Matrix.
Covers Derivatives: Rate of Change and the Tangent, Derivative Rules and the Chain Rule, Maxima, Minima and Setting the Derivative to Zero, Partial Derivatives and the Gradient, Curvature: Second Derivatives, Taylor and Newton, Integrals as Area, Convexity, Local Minima and Saddle Points, The Chain Rule Through a Computation, Constrained Optimisation and Lagrange Multipliers.
Covers Floating Point and Numerical Stability.
Covers Why Statistics Matters for ML, AI and Real Decisions, From Question to Evidence to Action.
Covers Histograms and Density, The CDF, Percentiles and Quantiles, Mean, Median and Mode, Variance, Standard Deviation and IQR, Box Plots and Violin Plots, Correlation, Confounding and Causation, Who Is in the Dataset?, Categorical Counts, Rates and Bar Plots, Scatter, Joint and Density Plots, Pair Plots and Correlation Heatmaps.
Covers EDA Is a Sequence of Decisions, How Charts Can Mislead, Denominators, Base Rates and Missing Groups, Project Lab: End-to-End EDA for an ML Decision.
Covers Probability Basics, Conditional Probability and Independence, Bayes' Theorem, Random Variables, Expectation and Variance, Monte Carlo Simulation.
Covers Random Sampling, Bernoulli and Binomial Outcomes, The Normal Distribution, Residual Shape and the Q-Q Plot, Long Tails and Log Transforms, The Multivariate Normal, Dependence Over Time.
Covers Samples, Sampling Distributions and the Central Limit Theorem, Maximum Likelihood Estimation, Confidence Intervals, The Bootstrap, Bayesian Estimation and Credible Intervals.
Covers What Is Machine Learning?, The Kinds of Machine Learning, The Machine Learning Workflow, Samples, Features and Labels, Where Data Comes From.
Covers Features Against the Target, The Modelling Checks: Target, Leakage and Feature Decisions.
Covers Simple Linear Regression, Gradient Descent, Gradient Descent for Linear Regression, Multiple Linear Regression, Why Gradient Descent Is Slow: Conditioning and Feature Scaling, Regression Diagnostics and Robust Regression, Collinearity.
Covers Distance and Similarity, k-Nearest Neighbours, Overfitting, Underfitting and the Test Set, Cross-Validation, Hyperparameter Search, Learning Curves and Validation Curves, Polynomial Regression: Choosing Model Capacity, Ridge Regression, Lasso and Elastic Net, k-NN at Scale: kd-Trees and Hashing.
A free account opens the cheat sheets in the free sample: Python modules 1 to 5 and the opening modules of every track. The opens the rest.
Each sheet comes from a module of the course, where every rule is taught, practised and checked.