twoHelixestwoHelixes Start free

Datasets / E-commerce funnel

The acquisition funnel, all channels

Each stage is summed across the cohorts, so the width of the funnel shows where potential customers leave the journey.

Question funnel chart of visitors signups trials and purchases
Visitors to purchasesVisitors 3.2MSignups 242.4kTrials 98.8kPurchases 27.7k
E-commerce funnel — 4 rows charted from 120, drawn as a funnel
How it decided
Finding the data971 ms

E-commerce funnel: 120 rows, 11 columns. the four ordered stage columns; channel and device are intentionally pooled.

Shaping the data2 ms

120 rows in, 4 out across 2 columns. Each stage is summed across the cohorts, so the width of the funnel shows where potential customers leave the journey.

Choosing the chart5 ms

funnel. The question names an ordered journey, so a funnel preserves stage order instead of ranking the stages by size.

Applying defaults1 ms

Palette, spacing, axis titles and legend placement applied. 0 issues found.

The transformation

This is the code, not a description of it — the chart above was drawn from what it returns, and the notebook download runs the same lines against the same file.

result = pd.DataFrame({"stage": ["Visitors", "Signups", "Trials", "Purchases"], "count": [df["visitors"].sum(), df["signups"].sum(), df["trials_started"].sum(), df["purchases"].sum()]})

What it charted

4 rows out of 120, 2 columns. First 4 shown.

stagecount
Visitors3238800
Signups242354
Trials98814
Purchases27743