Railways, goods transported (million ton-km)
Real data: World Bank, World Development Indicators, indicator IS.RRS.GOOD.MT.K6, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Goods transported by railway are the volume of goods transported by railway, measured in metric tons times kilometers traveled.
Limits and exceptions (World Bank note)
Data for transport sectors are not always internationally comparable. Unlike for demographic statistics, national income accounts, and international trade data, the collection of infrastructure data has not been "internationalized." The data from UIC is based on voluntary reporting by railway companies, and can show drastic increases or decreases for some of the years due to lack of reporting by some of the companies in that country.
The numbers in 2020
In 2020, 62 countries have a value. The highest is Russian Federation (2.54 million); the lowest is Albania (26.04). The median country value is 5,756. The World Bank's World aggregate for 2007 is 5,646.
Top 10 countries, 2020
million ton-km
Highest, 2020
| # | Country | Value |
|---|---|---|
| 1 | Russian Federation | 2.54 million |
| 2 | United States | 2.10 million |
| 3 | India | 707,665 |
| 4 | Australia | 447,435 |
| 5 | Canada | 444,032 |
| 6 | Kazakhstan | 302,156 |
| 7 | Ukraine | 175,587 |
| 8 | Germany | 108,406 |
| 9 | Mexico | 86,224 |
| 10 | Poland | 51,096 |
Lowest, 2020
| # | Country | Value |
|---|---|---|
| 1 | Albania | 26.04 |
| 2 | Ireland | 74 |
| 3 | Luxembourg | 162 |
| 4 | Congo, Dem. Rep. | 171.3 |
| 5 | Tajikistan | 274 |
| 6 | Tunisia | 334.8 |
| 7 | North Macedonia | 342 |
| 8 | Gabon | 409 |
| 9 | Greece | 555 |
| 10 | Moldova | 599 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1990s | 98 |
| 2000s | 95 |
| 2010s | 81 |
| 2020s | 62 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2007 | 5,646 |
| 2006 | 4,893 |
| 2005 | 4,037 |
| 2004 | 3,904 |
| 2003 | 3,274 |
| 2002 | 3,422 |
| 2001 | 3,942 |
| 2000 | 2,264 |
| 1999 | 2,106 |
| 1998 | 2,594 |
| 1997 | 2,288 |
| 1996 | 2,085 |
By region, 2020
| World Bank region | Value |
|---|---|
| North America | 1.27 million |
| Europe & Central Asia | 7,624 |
First rows
railways-goods-transported-million-ton-km.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Albania | ALB | Europe & Central Asia | Upper middle income | 1995 | 53 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 1996 | 42 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 1997 | 23 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 1998 | 25 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 1999 | 26 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2000 | 28 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2001 | 19 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2002 | 21 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| country | text | Country or economy, World Bank name |
| iso3 | text | ISO 3166-1 alpha-3 code |
| region | text | World Bank region |
| income_group | text | World Bank income group |
| year | number | Calendar year of the value |
| value | number | Railways, goods transported (million ton-km), exactly as the World Bank API returns it (not rounded) |
Only country-years with a value are in the long file; blank cells in the wide file mean no value was published.
Practice questions
answers computed from the file
Which country has the highest value in 2020?
Russian Federation, with 2.54 million.
Excel (on the long CSV: E = year, F = value)
=FILTER(A2:A100000,(E2:E100000=2020)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2020)))SQL (table wb = the CSV)
SELECT country, value FROM wb WHERE year = 2020
AND value = (SELECT MAX(value) FROM wb WHERE year = 2020);pandas (df = pd.read_csv("railways-goods-transported-million-ton-km.csv"))
y = df[df.year == 2020]
y[y.value == y.value.max()][["country", "value"]]File: railways-goods-transported-million-ton-km.csv
How many countries report a value for 2020?
62 of the 217 economies in the file's country list.
Excel (on the long CSV: E = year, F = value)
=COUNTIF(E2:E100000,2020)SQL (table wb = the CSV)
SELECT COUNT(*) FROM wb WHERE year = 2020;pandas (df = pd.read_csv("railways-goods-transported-million-ton-km.csv"))
(df.year == 2020).sum()File: railways-goods-transported-million-ton-km.csv
What is the median across countries in 2020?
5,756 (median of the 62 country values; not a World Bank aggregate).
Excel (on the long CSV: E = year, F = value)
=MEDIAN(FILTER(F2:F100000,E2:E100000=2020))SQL (table wb = the CSV)
-- SQLite has no MEDIAN(); this picks the middle value(s)
SELECT AVG(value) FROM (SELECT value FROM wb WHERE year = 2020 ORDER BY value
LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2020) % 2
OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2020));pandas (df = pd.read_csv("railways-goods-transported-million-ton-km.csv"))
df[df.year == 2020]["value"].median()File: railways-goods-transported-million-ton-km.csv
Which country rose the most between 2010 and 2020?
Russian Federation: from 2.01 million to 2.54 million, a rise of 533,520 (out of 60 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (railways-goods-transported-million-ton-km-wide.csv): add a column = [2020] - [2010], then sort it largest to smallest.SQL (table wb = the CSV)
SELECT a.country, b.value - a.value AS rise FROM wb a JOIN wb b ON a.iso3 = b.iso3
WHERE a.year = 2010 AND b.year = 2020 ORDER BY rise DESC LIMIT 1;pandas (df = pd.read_csv("railways-goods-transported-million-ton-km.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2020] - w[2010]).dropna().nlargest(1)File: railways-goods-transported-million-ton-km.csv
Which year has the most countries reporting?
1997, with 98 countries. (Later years are still filling in as countries report.)
Excel (on the long CSV: E = year, F = value)
Make a pivot table: year in Rows, Count of value in Values, then sort by the count.SQL (table wb = the CSV)
SELECT year, COUNT(*) AS n FROM wb GROUP BY year ORDER BY n DESC, year DESC LIMIT 1;pandas (df = pd.read_csv("railways-goods-transported-million-ton-km.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: railways-goods-transported-million-ton-km.csv