twoHelixestwoHelixes Start free

Datasets / Support tickets

Median first response, by priority

The median, not the mean: response times have a long tail and one ticket left over a weekend moves an average and not a median.

Question what is the median first response time by priority?
Median first response by priority0246810UrgentHighNormalLowPriority
Support tickets — 4 rows charted from 3,358, drawn as a bar
How it decided
Finding the data108 ms

Support tickets: 3,358 rows, 8 columns. priority and first_response_hours.

Shaping the data13 ms

3,358 rows in, 4 out across 2 columns. The median, not the mean: response times have a long tail and one ticket left over a weekend moves an average and not a median.

Choosing the chart9 ms

bar. Few categories, one measure, an obvious ordering: bars.

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("priority", as_index=False)["first_response_hours"].median().sort_values("first_response_hours")

What it charted

4 rows out of 3,358, 2 columns. First 4 shown.

priorityfirst_response_hours
Urgent0.615
High1.75
Normal4.425
Low9.25