DoorDash's order-cancellation rate has increased. A cancellation before a merchant begins work and one after a worker reaches the pickup point can have very different consequences. The task is to establish what changed, locate the increase, and distinguish explanations across consumers, merchants, dashers, product and operations.
Begin with the count behind the rate. A changed order mix can raise the aggregate even when no segment gets worse, while a changed event definition can create an increase without any additional failed delivery. Those possibilities call for different investigations.
The case provides order-level records for a baseline week and a current week. Each order has its placement time, delivery zone and final outcome, along with the stage, actor and reason recorded for any cancellation.
1. What data comes with this case?
The order records are simulated case data generated for this exercise, not DoorDash results. Preview or download the file below. Inside the notebook cells it is already in the working directory, so pd.read_csv("orders.csv") works directly.
TIP
The Python cells in this case study run in your browser and share one session. Click Run on each cell from top to bottom. If you change an earlier input, rerun that cell and the later cells that depend on it.
orders.csv holds one row per placed order in two comparable 7-day placement cohorts: baseline orders placed 2026-09-14 to 2026-09-20 and current orders placed 2026-10-12 to 2026-10-18. Every order has reached a terminal outcome, and each delivery address maps to one fixed zone.
| Column | Meaning |
|---|---|
order_id | Unique placed order |
period | baseline or current placement cohort |
placed_at | Local placement time |
delivery_zone | Delivery-address zone, zone_01 to zone_07 |
zone_type | outer or central |
is_cancelled | 1 if the order ended cancelled, otherwise 0 (delivered) |
cancelled_at | Local cancellation time; blank for delivered orders |
cancel_stage | Last stage reached: pre_acceptance, pre_pickup or post_pickup |
cancel_actor | Recorded final actor: consumer, merchant, dasher, support or system |
cancel_reason | Recorded reason code |
Load the file once. Later cells reuse this table:
import pandas as pd
orders = pd.read_csv("orders.csv", parse_dates=["placed_at", "cancelled_at"])
print(orders.shape)
orders.head()
(20000, 10)
2. Who is affected by more cancellations?
Which parts of the organization and marketplace may be affected by a higher order-cancellation rate, and what would you measure to understand the impact?
Trace the cancellation through the delivery lifecycle and measure the resulting loss to each participant. Start with affected order counts and stage, then estimate customer delay, wasted preparation or travel, support demand and financial exposure. The cancellation percentage alone does not describe that impact.
Why does the stage of cancellation change its cost?
An early cancellation may release capacity before preparation or travel begins. A late cancellation can leave prepared food, worker time and a consumer still needing a meal. Some cancellations prevent an unsafe or impossible delivery, so reducing the rate at any cost would be the wrong objective.
Clarify who pays which costs under the applicable rules rather than assuming a refund or compensation policy. Track what happened to the order before estimating its economic impact:
| Participant or team | Impact to inspect | Useful measure |
|---|---|---|
| Consumers | Failed meal plan and uncertainty | Affected users, time lost, later successful reorder |
| Merchants | Wasted preparation or lost demand | Prepared cancellations and observed unrecovered cost |
| Dashers | Unproductive travel and waiting | Time/distance before cancellation, compensation received |
| Support and operations | Recovery work and capacity disruption | Contacts, handling time and repeated reassignments |
| Finance and product | Cost and trust beyond one order | Actual credits/costs, contribution and later behavior |
Count each canceled order once, while retaining its potentially multiple impacts. Customer contacts, merchant complaints and reassigned offers are different event streams and must not be added as if they were distinct canceled orders.
Later retention can help assess the problem's importance, but customers with canceled orders may differ from customers with successful orders before the incident. A retention gap is initially a descriptive association. It should not become an estimate of cancellation's causal cost without a defensible comparison.
3. Where does the cancellation increase begin?
How would you define and validate the metric, then segment it to find where and when the increase originates?
Validate a distinct-order cancellation measure on comparable placement cohorts, then separate absolute lost orders, within-segment rates and changing order mix. Locate onset by cancellation stage, actor, geography and exposure to relevant changes. Do not select a cause from the aggregate rate alone.
Which orders belong in the numerator and denominator?
For a working definition, use placed orders that reach a terminal cancellation state divided by all placed orders in the same geography and placement cohort. Define whether failed checkout attempts, merchant rejections, partial fulfillment, returned orders and refunds belong in that state. A refunded completed order is not automatically a canceled order.
Reconcile analytical events with the operational order record. Repeated status events or one order joined to several support contacts can multiply the numerator. Changes in state mapping, ingestion or cancellation timestamps can create a measurement break. Inspect the onset alongside releases and reconcile distinct IDs before assigning a behavioral explanation.
Compare cohorts at the same defined age or wait for a prespecified maturity rule based on the actual lifecycle. Retain all originally placed orders in the denominator. Report unresolved outcomes if they remain material rather than silently excluding pending orders or treating them as completed. Recent and mature cohorts are not comparable just because their calendar windows have equal length.
IMPORTANT
Keep placement time, outcome maturity and terminal-state definitions consistent. A cancellation-date numerator divided by a placement-date denominator can mix different orders and manufacture a rate change.
Could the aggregate rise while a segment improves?
Yes. A larger share of orders in a segment with a higher cancellation rate can outweigh improvements within that segment. Use the case data's comparable 7-day placement cohorts, with mature outcomes and fixed delivery-address zones. The outer and central zone types partition every order:
zones = ["outer", "central"]
by_zone = orders.groupby(["period", "zone_type"])["is_cancelled"].agg(placed="count", cancelled="sum")
baseline = by_zone.loc["baseline"].loc[zones]
current = by_zone.loc["current"].loc[zones]
baseline_placed = baseline["placed"].tolist()
baseline_cancelled = baseline["cancelled"].tolist()
current_placed = current["placed"].tolist()
current_cancelled = current["cancelled"].tolist()
print(baseline_placed, baseline_cancelled, current_placed, current_cancelled)
[1000, 9000] [100, 90] [3000, 7000] [240, 70]
Calculate the market rates from totals, preserving the placed-order denominator:
baseline_total = sum(baseline_placed)
current_total = sum(current_placed)
baseline_rate = sum(baseline_cancelled) / baseline_total
current_rate = sum(current_cancelled) / current_total
aggregate_change_pp = 100 * (current_rate - baseline_rate)
print(f"{baseline_rate:.1%} -> {current_rate:.1%} ({aggregate_change_pp:.1f} pp)")
1.9% -> 3.1% (1.2 pp)
Both periods contain 10k placed orders. Cancellations rise from 190 to 310, and the rate rises from 1.9% to 3.1%, or 1.2 percentage points. The conditional rates tell a different story:
| Zone | Baseline cancellation | Current cancellation | Share of placed orders |
|---|---|---|---|
| Outer zones | 10% | 8% | 10% → 30% |
| Central zones | 1% | 1% | 90% → 70% |
Hold the baseline order mix fixed and apply the current rates:
fixed_mix_rate = 0
for index in range(len(zones)):
baseline_weight = baseline_placed[index] / baseline_total
current_segment_rate = current_cancelled[index] / current_placed[index]
fixed_mix_rate += baseline_weight * current_segment_rate
print(f"{fixed_mix_rate:.1%}")
1.7%
The result is 1.7%, below the baseline's 1.9%. In notation, let be a zone's share of placed orders and its cancellation rate. Use for baseline and for current:

Hypothetical zone rates and placement mix explain different aggregate trends
The current cohort contains more outer-zone orders, whose cancellation rate remains higher despite improving. This explains the example's aggregate increase without requiring deterioration within either zone. It does not explain why the mix changed or establish the cause of any individual cancellation. Standardization is a descriptive comparison, not an estimate of what changing coverage would cause.
Which cuts reveal the beginning without double counting?
Locate the first affected placement cohorts, then examine the stage reached before cancellation. Distinguish cancellation before merchant acceptance, after acceptance but before pickup, and after pickup when those states exist. For a stage-specific rate, show the number of orders that reached that stage. A larger early-stage loss changes who remains at risk later.
Use fixed geography and relevant dayparts, merchant groups, pre-period customer cohorts, fulfillment types and application versions to narrow exposure. Prioritize absolute excess cancellations as well as rates. Do not add overlapping device, merchant and area cuts as separate contributions. A reason code or final actor helps locate the event, but can describe who pressed cancel rather than why the delivery became unattractive or impossible.
4. Which mechanisms could raise cancellations?
What hypotheses would you form about consumer, merchant, dasher, product and operational causes, and how would the observed cancellation patterns change their priority?
Prioritize mechanisms whose timing, affected population and order stage fit the increase. Keep consumer decisions, merchant constraints, delivery capacity and software behavior distinct long enough to design a comparison that separates them. Several can produce the same final cancellation reason.
What would each cause leave in the order history?
Use the stage and exposure evidence to make hypotheses specific:
| Family | Plausible mechanism | Pattern that would focus the investigation |
|---|---|---|
| Consumer | Unexpected cost, changed intent or an excessive wait | More abandonment after a quote or waiting milestone |
| Merchant | Unavailable items, inaccurate hours or overloaded preparation | Merchant-specific acceptance or preparation failures |
| Dasher | Too little reachable capacity or unattractive assignments | Longer assignment gaps and repeated unaccepted offers |
| Product | Payment, duplicate-order or cancellation-flow defect | Sudden concentration by version, provider or event path |
| Operations | Dispatch, batching or handoff failure | A changed lifecycle step preceding cancellation |
A consumer who cancels after a long assignment wait is consistent with a delivery-capacity problem as well as a change in consumer patience. A merchant cancellation after repeated unaccepted offers may also be downstream of another failing step. Use the timeline to distinguish the initiating event from the eventual actor.
If the rate rise is entirely explained by a larger outer-zone share, investigate why those orders grew and whether the service is acceptable there. Do not call the unchanged central-zone process a new failure. The example's improving outer-zone rate also does not make its remaining cancellation burden irrelevant.
Why can a reason-code dashboard send you to the wrong team?
The final actor is easy to count and often tempting to treat as the owner of the root cause. That shortcut loses the events that made the cancellation happen:
Bad Solution: Assign blame from the final reason code
Group cancellations by the recorded actor or reason, choose the largest category, and ask that team to reduce it. This quickly produces an owner and a chart, and the reason field may be the only clean label available in the reporting table.
But a consumer can cancel because no worker was assigned, and a merchant can cancel after an upstream information failure. A changed interface can also change which label people choose. The dashboard describes attributed events. It cannot establish that the named participant initiated the failure or identify the repair that would prevent it.
Good Solution: Reconstruct the events before cancellation
Build a distinct-order timeline linking placement, merchant acceptance, preparation, offer attempts, assignment, pickup and cancellation where those events exist. Compare the affected orders with similar opportunities that completed or belonged to unaffected cohorts. Keep missing events and unresolved states visible rather than silently inferring that a step never happened.
The timeline locates which failure or delay preceded cancellation and makes alternative explanations testable. It still does not randomize the suspected cause. Use stable comparison groups, incident reproduction or a safe corrective test to determine whether removing that failure actually improves outcomes without shifting the problem elsewhere.
5. How would you distinguish the leading causes?
What analyses or tests would distinguish the hypotheses you prioritize, and how would their results change your diagnosis or next action?
Choose comparisons whose predictions differ across the leading hypotheses. Reconcile data at order grain first, then use pre-cancellation exposure and timing to evaluate those predictions. A verified incident may justify a safe repair, while an unexplained association calls for more discriminating evidence.
Which comparison would weaken each explanation?
Start with the most relevant rows rather than running every analysis:
- Consumer cost: compare final quotes for similar baskets, addresses and promotion eligibility before placement. Stable comparable costs weaken a price explanation. Comparing only completed baskets removes the cancellations being explained.
- Merchant availability: match requested item, merchant and opening period to availability records and preparation conditions. Normal acceptance and preparation in affected orders weaken that mechanism, provided logging is complete.
- Delivery capacity: compare reachable worker time, offer attempts and assignment waits for similar pickup opportunities. Longer preparation with normal assignment points away from a pure assignment shortage.
- Product defects: align release or provider exposure with the first affected orders, reconcile server states, and reproduce the suspected failure. The same pattern in unexposed versions weakens a release-specific explanation.
- Operational changes: compare the suspected dispatch or handoff step with contemporaneous unaffected operations after accounting for location and workload. A difference that predates the change weakens its timing story.
Preserve chronology when joining data. Summarize repeated offers and status events per order before the final aggregation. Use observations available before cancellation, since later reassignments, support actions and reason corrections may be responses to it.
When should a diagnostic result change the action?
Suppose the increase begins after a release, concentrates on its cancellation flow, appears in operational terminal states and can be reproduced. A controlled rollback or correction with appropriate service safeguards can test that explanation. Track placed orders, mature completions, cancellations and unresolved states together. A lower cancellation count caused by blocked ordering or missing cancellation logs would not be recovery.
If the suspected mechanism changes shared delivery capacity, a worker- or order-level comparison may affect controls as well. Choose a feasible operational boundary and inference that respects that interaction. Do not force a customer split onto a marketplace repair merely because it creates many observations.
When randomization or a safe corrective test is unavailable, use a credible comparable cohort and examine pre-change trends and concurrent shocks. Such checks can weaken an explanation without proving the remaining causal assumption. State what is still uncertain and what observation would change the diagnosis. The task ends with the best-supported failing step and next verification, not an invented root cause.
6. Wrapping up
A higher cancellation rate becomes actionable when its orders, timing and lifecycle are understood. Quantify who loses time or value, validate a stable placed-order measure, and separate a changing order mix from worsening behavior within a segment. The hypothetical example shows how aggregate deterioration can coexist with better within-zone rates.
Carry that discipline into the cause investigation. Final actors and reason codes describe an event, while timelines and discriminating comparisons test why it happened. A useful next action repairs a supported failure and checks real fulfillment, rather than merely making the cancellation percentage smaller.