Skip to content
Codescope

Track 07 · Data Analytics

The Data Analytics track

Dataframes, filtering, missing data, group-by and joins — one transformation at a time.

49 concepts mapped · 7 interactive now · 43 steps · free, no login

BeginnerStart here — no prior programming experience required.

01Foundations

2 of 4 live

The shape of tabular data, and how to select from it.

  1. 01

    DataFrames & filtering

    Filtering is not a loop. It is a column of True and False laid over your rows.

    intro9 min7 steps
    0%
  2. 02

    Loading data

    CSV, Excel and SQL — delimiters, encodings and parse errors.

    intro7 min5 steps
    0%
  3. 03

    Dtypes & conversion

    upcoming

    Why a numeric column arrives as object, and what that costs.

  4. 04

    Indexing: loc vs iloc

    upcoming

    Labels against positions, and the chained-assignment trap.

02Cleaning

1 of 4 live

Real data is wrong before it is useful.

  1. 05

    Missing data & NaN

    A gap is a value. Deciding what it means is your job, not pandas'.

    core9 min7 steps
    0%
  2. 06

    Duplicates

    upcoming

    Finding them, deciding which to keep, and why joins create them.

  3. 07

    Outliers

    upcoming

    Detecting them, and the difference between wrong and merely extreme.

  4. 08

    String cleaning

    upcoming

    Whitespace, case, and the categorical values that are almost equal.

IntermediateBuild on the fundamentals with the mechanics working developers meet daily.

03Transforming

2 of 4 live

Reshaping data into the form the question needs.

  1. 09

    Group-by: split, apply, combine

    Three steps, one line of code. Knowing the three is what makes the line predictable.

    core10 min7 steps
    0%
  2. 10

    Joins & merges

    Matching rows by key is easy. The interesting part is what happens to the rows that do not match.

    core10 min6 steps
    0%
  3. 11

    Reshaping: wide vs long

    upcoming

    pivot, melt and stack — the same data in two different shapes.

  4. 12

    apply vs vectorised operations

    upcoming

    Why apply is a loop in disguise, and what to write instead.

04Time series

0 of 3 live

Data where order and interval carry meaning.

  1. 13

    Dates & times

    upcoming

    Parsing, the DatetimeIndex, and time zones that ruin aggregates.

  2. 14

    Resampling

    upcoming

    Daily to monthly, and choosing the aggregation that fits the metric.

  3. 15

    Rolling windows

    upcoming

    Moving averages, and the lookahead bias that invalidates a backtest.

05Statistics

1 of 4 live

Describing a dataset without misleading yourself.

  1. 16

    Descriptive statistics

    Mean, median and spread — and when the mean is the wrong summary.

    intro8 min6 steps
    0%
  2. 17

    Distributions & histograms

    upcoming

    Shape, skew, and why bin width changes the story.

  3. 18

    Correlation

    upcoming

    What r measures, what it misses, and Simpson's paradox.

  4. 19

    Sampling & uncertainty

    upcoming

    Why a difference in two averages may be nothing at all.

06SQL

1 of 5 live

The same operations, expressed in the database.

  1. 20

    SELECT, WHERE & ORDER BY

    The logical order a query runs in, which is not the written order.

    intro8 min5 steps
    0%
  2. 21

    Joins in SQL

    upcoming

    The same inner, left and outer decisions, with different syntax.

  3. 22

    GROUP BY & HAVING

    upcoming

    Aggregation, and why WHERE cannot filter on a count.

  4. 23

    Window functions

    upcoming

    Aggregate per row without collapsing rows — running totals and ranks.

  5. 24

    CTEs & subqueries

    upcoming

    Naming intermediate results so a long query stays readable.

AdvancedDeep internals, specialist tooling, and the topics you reach for at scale.

07Advanced pandas

0 of 5 live

Squeezing memory and speed from pandas at real-world data sizes.

  1. 25

    Categorical dtypes

    upcoming10 min

    Store a column of a few repeated strings as small integers plus a lookup — huge memory savings.

    • Convert an object column to categorical with astype('category')
    • Understand ordered vs unordered categories
    • Speed up groupby by making the key categorical
  2. 26

    Dtype downcasting & memory

    upcoming11 min

    float64 wastes 4 bytes when float32 would do — and it adds up on a million rows.

    • Profile memory usage with df.memory_usage(deep=True)
    • Downcast numerics with pd.to_numeric(downcast=...)
    • Convert repeated strings to categorical
  3. 27

    Chunked reading for out-of-memory data

    upcoming12 min

    Process a 50 GB CSV on a 16 GB machine by reading it in chunks.

    • Iterate a CSV with pd.read_csv(chunksize=...)
    • Aggregate incrementally without holding the full frame in RAM
    • Know when to switch to Dask or DuckDB
  4. 28

    MultiIndex & hierarchical indexing

    upcoming11 min

    One index made of multiple levels — the natural shape after groupby with several keys.

    • Read the result of groupby with two keys
    • Slice a MultiIndex with .loc and IndexSlice
    • Move levels between index and columns with unstack/stack
  5. 29

    Rolling, expanding & window ops

    upcoming11 min

    Aggregates that slide across rows — moving averages and running totals in one call.

    • Compute a rolling mean with a defined window
    • Understand the min_periods trap at the start of the window
    • Use ewm for exponentially weighted stats

08Distributed & columnar

0 of 4 live

When one machine isn't enough — or your data doesn't fit in RAM.

  1. 30

    Spark: RDDs & DataFrames

    upcoming14 min

    Distribute work across many machines — the API looks like pandas until it doesn't.

    • Understand lazy execution and the query plan
    • Distinguish narrow vs wide transformations (shuffle)
    • Use partitions to control parallelism
  2. 31

    Dask: parallel pandas

    upcoming12 min

    Bigger-than-memory dataframes with a pandas-flavoured API — one machine or a cluster.

    • Convert a pandas workflow to Dask with minimal edits
    • Understand delayed graphs and when they materialise
    • Diagnose stragglers with the Dask dashboard
  3. 32

    Parquet & columnar storage

    upcoming11 min

    Storing by column, not by row — the reason "select two columns from a billion rows" is fast.

    • Understand row groups, column chunks, and encoding
    • Push filter and column projection down to the reader
    • Compare Parquet against CSV and Feather
  4. 33

    Partitioning & data skew

    upcoming10 min

    A groupby on 100 partitions with 99 empty and 1 huge is the classic performance killer.

    • Partition data by a high-cardinality key
    • Detect skew from a Spark/Dask task duration distribution
    • Fix skew with salting or repartitioning

09Time series forecasting

0 of 4 live

Predicting the next value from a sequence of past values.

  1. 34

    ARIMA & SARIMA

    upcoming13 min

    Autoregressive, integrated, moving average — the classical statistical forecast.

    • Choose (p, d, q) with ACF and PACF plots
    • Difference a series to stationarity
    • Add seasonality with SARIMA
  2. 35

    Seasonal decomposition (STL)

    upcoming10 min

    Split a series into trend + seasonal + residual, and stare at what's left.

    • Run STL on a monthly series
    • Choose additive vs multiplicative decomposition
    • Detect anomalies from residual spikes
  3. 36

    Backtesting & walk-forward validation

    upcoming12 min

    Train on the past, predict the future, and never let tomorrow's data leak into today's model.

    • Implement a rolling train/test split
    • Recognise lookahead bias in feature engineering
    • Report RMSE / MAPE over time, not as a single number
  4. 37

    Exponential smoothing & Holt-Winters

    upcoming10 min

    Weight recent observations more — cheap, robust, sometimes better than ARIMA.

    • Choose between simple, double, and triple exponential smoothing
    • Fit Holt-Winters with statsmodels
    • Compare to a persistence baseline

10ML foundations

0 of 7 live

The bare minimum of machine learning that a data analyst should know.

  1. 38

    Linear regression

    upcoming11 min

    One line through the points — the model every ML book starts with.

    • Fit with sklearn and interpret coefficients
    • Understand the assumptions (linearity, independence, homoscedasticity)
    • Diagnose with residual plots
  2. 39

    Logistic regression

    upcoming10 min

    Linear regression through a sigmoid, giving you a probability between 0 and 1.

    • Fit a binary classifier and read the coefficients
    • Choose a threshold from the ROC curve
    • Handle class imbalance with weights
  3. 40

    Feature engineering

    upcoming12 min

    Turning raw columns into features a model can actually learn from.

    • One-hot encode categorical variables
    • Scale features so distance-based models behave
    • Create interaction and polynomial features carefully
  4. 41

    Cross-validation & data leakage

    upcoming11 min

    The technique that turns a single unreliable score into a reliable one.

    • Run k-fold cross-validation with sklearn
    • Use stratified folds for imbalanced classes
    • Spot leakage from fitting a scaler outside the fold
  5. 42

    Overfitting & regularisation

    upcoming11 min

    Why a model that memorises the training set performs worse on new data.

    • Diagnose overfitting from a train/validation gap
    • Apply L1 (Lasso) and L2 (Ridge) penalties
    • Understand why early stopping is regularisation
  6. 43

    Decision trees

    upcoming10 min

    Repeatedly split the data on the question that reduces impurity most.

    • Fit a tree and read its structure
    • Understand gini and entropy as split criteria
    • Control depth to avoid overfitting
  7. 44

    Random forests & bagging

    upcoming11 min

    Many random trees, averaged — usually the best model you can fit in five minutes.

    • Understand bootstrapping and feature subsetting
    • Read feature importances (and know why they can mislead)
    • Compare to gradient boosting

11Advanced SQL

0 of 5 live

How the database plans and executes what you write.

  1. 45

    Query planners & EXPLAIN

    upcoming13 min

    The database rewrites your query into an execution plan; understanding the plan is the job.

    • Read EXPLAIN ANALYZE output
    • Distinguish sequential scan, index scan, index-only scan
    • Understand nested loop vs hash vs merge join
  2. 46

    B-tree indexes, covering & partial

    upcoming12 min

    The single most important database tuning tool, and its trade-offs.

    • Choose composite index column order
    • Understand covering indexes and index-only scans
    • Diagnose why an index isn't being used
  3. 47

    Materialized views

    upcoming10 min

    Cache the result of an expensive query as a real table you can index.

    • Create and refresh a materialized view
    • Compare to a plain view and to a cached table
    • Understand incremental refresh limitations
  4. 48

    Transactions & isolation levels

    upcoming13 min

    READ COMMITTED, REPEATABLE READ, SERIALIZABLE — which anomalies each one prevents.

    • Distinguish dirty read, non-repeatable read, phantom read
    • Choose an isolation level for a real workload
    • Recognise serialisation failures and how to retry
  5. 49

    Recursive CTEs

    upcoming11 min

    Walk a hierarchy — org charts, folder trees, ancestor chains — in pure SQL.

    • Write a WITH RECURSIVE that terminates
    • Understand the anchor and recursive parts
    • Detect and prevent infinite recursion on cycles

The full syllabus is listed above in teaching order. Concepts marked upcoming are mapped but not yet built as visualizations. Progress is kept in this browser only.