DataBrighten

    Railways, passengers carried (million passenger-km)

    2,137 × 6rows × columns: 107 countries, 1995 to 2021

    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.

    textnumberdateyes/no
    Rows2,137country-year values
    Countries107with at least one value
    Years1995 – 202127 years with data
    LicenceCC BY 4.0credit the World Bank

    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

    Source: World Bank, IS.RRS.PASG.KM, retrieved 19 November 2026. Computed from railways-passengers-carried-million-passenger-km.csv.

    Highest, 2020

    #CountryValue
    1India1.05 million
    2China328,251
    3Japan263,211
    4Russian Federation78,135
    5France64,859
    6Germany58,822
    7United Kingdom24,188
    8Italy22,269
    9Australia15,053
    10Switzerland13,334

    Lowest, 2020

    #CountryValue
    1Albania0.593
    2Congo, Dem. Rep.5.36
    3Kyrgyz Republic6.8
    4Bosnia and Herzegovina15
    5Zimbabwe17
    6Tajikistan21.7
    7North Macedonia25
    8Montenegro27.8
    9Moldova29.19
    10Gabon87
    How many countries report, by decade
    DecadeMost countries in one year
    1990s94
    2000s91
    2010s77
    2020s64

    World aggregate by year

    As published by the World Bank (in the regions file, not the country file).

    YearWorld
    20072,344
    20062,120
    20052,182
    20041,760
    20031,588
    20021,628
    20011,675
    20001,588
    19991,478
    19981,445
    19971,466
    19961,776

    By region, 2020

    World Bank regionValue
    North America6,344
    Europe & Central Asia2,366

    First rows

    railways-passengers-carried-million-passenger-km.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AlbaniaALBEurope & Central AsiaUpper middle income1995197
    AlbaniaALBEurope & Central AsiaUpper middle income1996168
    AlbaniaALBEurope & Central AsiaUpper middle income199795
    AlbaniaALBEurope & Central AsiaUpper middle income1998116
    AlbaniaALBEurope & Central AsiaUpper middle income1999121
    AlbaniaALBEurope & Central AsiaUpper middle income2000125
    AlbaniaALBEurope & Central AsiaUpper middle income2001138
    AlbaniaALBEurope & Central AsiaUpper middle income2002123

    Data dictionary

    ColumnTypeMeaning
    countrytextCountry or economy, World Bank name
    iso3textISO 3166-1 alpha-3 code
    regiontextWorld Bank region
    income_grouptextWorld Bank income group
    yearnumberCalendar year of the value
    valuenumberRailways, 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