twoHelixestwoHelixes Start free

Datasets / Hormuz shipping crisis

Daily transits through the strait, pre-war to crisis

Traffic falls from a stable pre-war baseline to a small fraction of normal after the closure, with only a cautious recovery later.

Question line chart of daily ship transits with the closure marked
Daily ship transits through Hormuz0255075100Jan 01Jan 11Jan 21Jan 31Feb 10Feb 20Mar 02Mar 12Mar 22Apr 01Apr 11Apr 21May 01Daypre_warwar_crisis
Hormuz shipping crisis — 125 rows charted from 125, drawn as a line
How it decided
Finding the data1087 ms

Hormuz shipping crisis: 125 rows, 26 columns. date, daily_ship_transits and period_type mark the baseline and crisis.

Shaping the data5 ms

125 rows in, 125 out across 3 columns. Traffic falls from a stable pre-war baseline to a small fraction of normal after the closure, with only a cautious recovery later.

Choosing the chart14 ms

line. A time series makes the discontinuity legible; the period split keeps the closure context visible without inventing a second scale.

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.

df["day"] = pd.to_datetime(df["date"]); result = df[["day", "daily_ship_transits", "period_type"]]

What it charted

125 rows out of 125, 3 columns. First 8 shown.

daydaily_ship_transitsperiod_type
2026-01-01103pre_war
2026-01-02108pre_war
2026-01-03108pre_war
2026-01-04108pre_war
2026-01-0598pre_war
2026-01-0698pre_war
2026-01-07106pre_war
2026-01-0897pre_war

More from Hormuz shipping crisis