Railways, passengers carried (million passenger-km)
Real data: World Bank, World Development Indicators, indicator IS.RRS.PASG.KM, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Passengers carried by railway are the number of passengers transported by rail multiplied by 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, 64 countries have a value. The highest is India (1.05 million); the lowest is Albania (0.593). The median country value is 1,384. The World Bank's World aggregate for 2007 is 2,344.
Top 10 countries, 2020
million passenger-km
Highest, 2020
| # | Country | Value |
|---|---|---|
| 1 | India | 1.05 million |
| 2 | China | 328,251 |
| 3 | Japan | 263,211 |
| 4 | Russian Federation | 78,135 |
| 5 | France | 64,859 |
| 6 | Germany | 58,822 |
| 7 | United Kingdom | 24,188 |
| 8 | Italy | 22,269 |
| 9 | Australia | 15,053 |
| 10 | Switzerland | 13,334 |
Lowest, 2020
| # | Country | Value |
|---|---|---|
| 1 | Albania | 0.593 |
| 2 | Congo, Dem. Rep. | 5.36 |
| 3 | Kyrgyz Republic | 6.8 |
| 4 | Bosnia and Herzegovina | 15 |
| 5 | Zimbabwe | 17 |
| 6 | Tajikistan | 21.7 |
| 7 | North Macedonia | 25 |
| 8 | Montenegro | 27.8 |
| 9 | Moldova | 29.19 |
| 10 | Gabon | 87 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1990s | 94 |
| 2000s | 91 |
| 2010s | 77 |
| 2020s | 64 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2007 | 2,344 |
| 2006 | 2,120 |
| 2005 | 2,182 |
| 2004 | 1,760 |
| 2003 | 1,588 |
| 2002 | 1,628 |
| 2001 | 1,675 |
| 2000 | 1,588 |
| 1999 | 1,478 |
| 1998 | 1,445 |
| 1997 | 1,466 |
| 1996 | 1,776 |
By region, 2020
| World Bank region | Value |
|---|---|
| North America | 6,344 |
| Europe & Central Asia | 2,366 |
First rows
railways-passengers-carried-million-passenger-km.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Albania | ALB | Europe & Central Asia | Upper middle income | 1995 | 197 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 1996 | 168 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 1997 | 95 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 1998 | 116 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 1999 | 121 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2000 | 125 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2001 | 138 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2002 | 123 |
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, passengers carried (million passenger-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?
India, with 1.05 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-passengers-carried-million-passenger-km.csv"))
y = df[df.year == 2020]
y[y.value == y.value.max()][["country", "value"]]File: railways-passengers-carried-million-passenger-km.csv
How many countries report a value for 2020?
64 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-passengers-carried-million-passenger-km.csv"))
(df.year == 2020).sum()File: railways-passengers-carried-million-passenger-km.csv
What is the median across countries in 2020?
1,384 (median of the 64 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-passengers-carried-million-passenger-km.csv"))
df[df.year == 2020]["value"].median()File: railways-passengers-carried-million-passenger-km.csv
Which country rose the most between 2010 and 2020?
India: from 903,465 to 1.05 million, a rise of 147,273 (out of 61 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (railways-passengers-carried-million-passenger-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-passengers-carried-million-passenger-km.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2020] - w[2010]).dropna().nlargest(1)File: railways-passengers-carried-million-passenger-km.csv
Which year has the most countries reporting?
1997, with 94 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-passengers-carried-million-passenger-km.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: railways-passengers-carried-million-passenger-km.csv