Life Tables
Get the life tables Eurostat compiles yearly for the countries of the European Economic Area: the mortality of a population by single year of age from 0 to 95.
The last age group is 95 and over, and the tables start in 1960 for most countries. A life table describes the mortality of a population: the basis of every pension, life insurance and annuity calculation, and of mortality and longevity assumptions in scenario models.
The measures are the probability of dying within the year (qx), the probability of surviving it (px), the age-specific death rate (mx), the number of survivors out of 100,000 births (lx), the number dying (dx), the person-years lived within the year (Lx) and above the age (Tx), and the life expectancy at the age (ex). Probabilities and rates are fractions; the others are counts or years.
For countries outside Europe the UN World Population Prospects publish life tables for every country (bulk files at population.un.org/wpp), and the Human Mortality Database long national histories (with free registration).
Also known as: mortality table, qx table, survival table, actuarial table.
Example · 2020 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_life_table:
from financetoolkit import Economics
economics = Economics(start_date='2020-01-01', end_date="2025-12-31")
life_table = economics.get_life_table(countries='Germany', sex='male')
life_table['Germany'][[0, 30, 65, 80, 95]]
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
What was the probability that a man in Germany dies within a year at ages 0, 30, 65, 80 and 95, from 2020 to 2024?
Which returns:
| Item | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2020 | 0.0032 | 0.0002 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0002 | 0.0003 | 0.0003 | 0.0004 | 0.0004 | 0.0004 | 0.0004 | 0.0004 | 0.0004 | 0.0004 | 0.0004 | 0.0004 | 0.0004 | 0.0005 | 0.0005 | 0.0006 | 0.0006 | 0.0007 | 0.0007 | 0.0008 | 0.0009 | 0.0011 | 0.0010 | 0.0012 | 0.0013 | 0.0014 | 0.0014 | 0.0016 | 0.0018 | 0.0018 | 0.0020 | 0.0022 | 0.0027 | 0.0030 | 0.0032 | 0.0036 | 0.0039 | 0.0045 | 0.0050 | 0.0057 | 0.0064 | 0.0068 | 0.0078 | 0.0086 | 0.0095 | 0.0107 | 0.0117 | 0.0129 | 0.0141 | 0.0156 | 0.0168 | 0.0182 | 0.0202 | 0.0216 | 0.0227 | 0.0252 | 0.0264 | 0.0305 | 0.0298 | 0.0354 | 0.0386 | 0.0408 | 0.0457 | 0.0486 | 0.0575 | 0.0627 | 0.0692 | 0.0789 | 0.0888 | 0.1051 | 0.1141 | 0.1315 | 0.1477 | 0.1686 | 0.1876 | 0.2075 | 0.2287 | 0.2485 | 0.2746 | 1 |
| 2021 | 0.0033 | 0.0002 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0000 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0002 | 0.0002 | 0.0003 | 0.0004 | 0.0004 | 0.0004 | 0.0004 | 0.0004 | 0.0004 | 0.0004 | 0.0004 | 0.0005 | 0.0005 | 0.0005 | 0.0005 | 0.0006 | 0.0006 | 0.0006 | 0.0006 | 0.0008 | 0.0008 | 0.0009 | 0.0011 | 0.0012 | 0.0012 | 0.0013 | 0.0014 | 0.0015 | 0.0018 | 0.0019 | 0.0020 | 0.0023 | 0.0025 | 0.0027 | 0.0033 | 0.0036 | 0.0039 | 0.0043 | 0.0046 | 0.0050 | 0.0059 | 0.0065 | 0.0072 | 0.0081 | 0.0090 | 0.0101 | 0.0112 | 0.0124 | 0.0133 | 0.0149 | 0.0163 | 0.0181 | 0.0193 | 0.0207 | 0.0228 | 0.0245 | 0.0261 | 0.0282 | 0.0299 | 0.0346 | 0.0337 | 0.0393 | 0.0439 | 0.0463 | 0.0516 | 0.0559 | 0.0646 | 0.0710 | 0.0800 | 0.0900 | 0.1012 | 0.1175 | 0.1300 | 0.1470 | 0.1671 | 0.1868 | 0.2042 | 0.2353 | 0.2537 | 0.2762 | 1 |
| 2022 | 0.0032 | 0.0002 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0002 | 0.0002 | 0.0003 | 0.0004 | 0.0005 | 0.0004 | 0.0004 | 0.0005 | 0.0005 | 0.0004 | 0.0004 | 0.0005 | 0.0005 | 0.0005 | 0.0005 | 0.0005 | 0.0006 | 0.0007 | 0.0006 | 0.0008 | 0.0008 | 0.0009 | 0.0010 | 0.0011 | 0.0012 | 0.0013 | 0.0014 | 0.0016 | 0.0017 | 0.0019 | 0.0020 | 0.0022 | 0.0025 | 0.0026 | 0.0029 | 0.0034 | 0.0037 | 0.0042 | 0.0044 | 0.0050 | 0.0057 | 0.0062 | 0.0070 | 0.0078 | 0.0086 | 0.0098 | 0.0107 | 0.0118 | 0.0133 | 0.0146 | 0.0160 | 0.0174 | 0.0193 | 0.0209 | 0.0225 | 0.0243 | 0.0267 | 0.0286 | 0.0315 | 0.0332 | 0.0394 | 0.0379 | 0.0439 | 0.0487 | 0.0524 | 0.0596 | 0.0643 | 0.0741 | 0.0817 | 0.0927 | 0.1042 | 0.1197 | 0.1403 | 0.1519 | 0.1737 | 0.1952 | 0.2184 | 0.2488 | 0.2704 | 0.2998 | 1 |
| 2023 | 0.0033 | 0.0003 | 0.0002 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0000 | 0.0001 | 0.0001 | 0.0001 | 0.0002 | 0.0002 | 0.0003 | 0.0004 | 0.0004 | 0.0005 | 0.0004 | 0.0004 | 0.0004 | 0.0004 | 0.0004 | 0.0005 | 0.0005 | 0.0005 | 0.0005 | 0.0006 | 0.0005 | 0.0006 | 0.0007 | 0.0008 | 0.0008 | 0.0009 | 0.0011 | 0.0010 | 0.0012 | 0.0013 | 0.0014 | 0.0016 | 0.0017 | 0.0019 | 0.0019 | 0.0022 | 0.0024 | 0.0027 | 0.0030 | 0.0032 | 0.0036 | 0.0039 | 0.0044 | 0.0048 | 0.0053 | 0.0058 | 0.0066 | 0.0076 | 0.0082 | 0.0093 | 0.0103 | 0.0114 | 0.0127 | 0.0144 | 0.0153 | 0.0167 | 0.0186 | 0.0198 | 0.0215 | 0.0230 | 0.0256 | 0.0273 | 0.0304 | 0.0332 | 0.0350 | 0.0407 | 0.0400 | 0.0474 | 0.0527 | 0.0571 | 0.0647 | 0.0688 | 0.0799 | 0.0890 | 0.0994 | 0.1137 | 0.1279 | 0.1506 | 0.1646 | 0.1868 | 0.2101 | 0.2359 | 0.2592 | 0.2818 | 1 |
| 2024 | 0.0035 | 0.0002 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0001 | 0.0002 | 0.0002 | 0.0003 | 0.0004 | 0.0004 | 0.0005 | 0.0005 | 0.0004 | 0.0004 | 0.0004 | 0.0004 | 0.0005 | 0.0005 | 0.0005 | 0.0005 | 0.0005 | 0.0005 | 0.0006 | 0.0006 | 0.0008 | 0.0008 | 0.0009 | 0.0009 | 0.0010 | 0.0012 | 0.0013 | 0.0013 | 0.0015 | 0.0016 | 0.0017 | 0.0020 | 0.0022 | 0.0023 | 0.0025 | 0.0027 | 0.0032 | 0.0034 | 0.0040 | 0.0042 | 0.0044 | 0.0051 | 0.0057 | 0.0063 | 0.0070 | 0.0079 | 0.0088 | 0.0097 | 0.0110 | 0.0121 | 0.0137 | 0.0151 | 0.0163 | 0.0177 | 0.0193 | 0.0215 | 0.0227 | 0.0248 | 0.0267 | 0.0286 | 0.0313 | 0.0346 | 0.0373 | 0.0430 | 0.0418 | 0.0506 | 0.0566 | 0.0603 | 0.0685 | 0.0737 | 0.0861 | 0.0955 | 0.1068 | 0.1224 | 0.1393 | 0.1648 | 0.1787 | 0.2018 | 0.2263 | 0.2490 | 0.2706 | 1 |
5 rows
Parameters
get_life_table accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
countries | list[str] | str | None | The countries to include, e.g. ‘Germany’ or [‘Germany’, ‘France’]. Defaults to None, which retrieves every country. | ["Germany", "France"] |
measure | str | The life table measure. Options are: “death_probability” (qx), “survival_probability” (px), “death_rate” (mx), “survivors” (lx), “deaths” (dx), “person_years” (Lx), “total_person_years” (Tx), “life_expectancy” (ex). Defaults to “death_probability”. | "life_expectancy" |
sex | str | The sex of the population. Options are: “total” (everyone), “male” (men), “female” (women). Defaults to “total”. | "female" |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Economics class. | 2 |
growth | bool | Whether to return the growth data or the actual data. Defaults to False. | True |
lag | int | The number of periods to lag the growth data by. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |