Educational Cards
Learn from video content, text, and interactive tasks
Filters
Numba and better algorithms
If a genuinely loop-bound numeric kernel resists vectorisation, Numba compiles a Python function to...
The estimator API and the train/test split
scikit-learn is the standard library for classical machine learning, and its great gift is...
Print, input, and turning text into numbers
Python is the language most data scientists reach for first, and like any language you begin by...
What you hand in and what good looks like
You hand in four things: - the data (checked in or a pinned snapshot, with its source and licence...
Every metric is an estimate; confidence intervals
Every metric is an estimate from a finite sample, and real decisions hinge on whether a difference...
DataFrames: reading, filtering, adding columns
pandas unifies everything so far into one object: the DataFrame , a table with named columns and a...
Reproducibility: environments, containers, seeds
An analysis nobody else can re-run is just an opinion. You make it re-runnable by pinning the...
Counting matches with masks; &, |, ~ and np.where
Combine masks and you can count the building blocks of every classification metric. With labels...
Graphs: relationships as data and algorithms
A graph is relationships as data : nodes connected by edges . Social networks, task dependencies,...
__slots__, the walrus, and when to use dataclasses
__slots__ fixes the exact set of attributes an instance may have: python class CompactFeature:...
Creating, slicing, and selecting arrays
Everything you did with lists and nested loops now collapses into one fast, typed object: the NumPy...
A config class that validates itself
The highest-value use of a class in data work is a validated configuration object . A pipeline has...