twoHelixestwoHelixes Start free

Datasets / Sales orders

Average net revenue per order, by channel

A per-order average, not a total: the channel with the most revenue and the channel with the most valuable order are usually not the same channel.

Question which channel brings the most revenue per order?
Net Amount by Channel02505007501k1.2kReferralSocialPaid searchOrganicEmailPartnerChannel
Sales orders — 6 rows charted from 11,316, drawn as a bar
How it decided
Finding the data95 ms

Sales orders: 11,316 rows, 10 columns. channel and net_amount; order counts come from the grouping itself.

Shaping the data11 ms

11,316 rows in, 6 out across 2 columns. A per-order average, not a total: the channel with the most revenue and the channel with the most valuable order are usually not the same channel.

Choosing the chart12 ms

bar. A handful of named categories being compared on one measure is a bar chart, sorted so the ranking is the shape.

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 = df.groupby("channel", as_index=False)["net_amount"].mean().sort_values("net_amount", ascending=False)

What it charted

6 rows out of 11,316, 2 columns. First 6 shown.

channelnet_amount
Referral1198.0452
Social1145.2531
Paid search1145.0665
Organic1131.3771
Email1120.5744
Partner1096.7414