Data:All Cause Mortality:USA
The United States of America, Life tables (period 5x1), Total Last modified: 05 Sep 2024; Methods Protocol: v6 (2017)
Downloaded from: https://www.mortality.org/Country/Country?cntr=USA
See https://www.mortality.org/Data/ExplanatoryNotes for an explanation of what the columns mean.
<datatable2 table="all cause mortality daily" columns="Year|Age|mx|qx|ax|lx|dx|Lx|Tx|ex" class="wikitable"> <head> |- !Year !Age !mx !qx !ax !lx !dx !Lx !Tx !ex </head> 2022|0|0.00562|0.00559|0.14|100000|559|99518|7753804|77.54 2022|1-4|0.00028|0.00112|1.60|99441|111|397495|7654286|76.97 2022|5-9|0.00013|0.00063|2.34|99329|63|496479|7256791|73.06 2022|10-14|0.00017|0.00086|2.89|99266|85|496152|6760312|68.10 2022|15-19|0.00059|0.00292|2.95|99181|290|495309|6264160|63.16 2022|20-24|0.00104|0.00518|2.62|98891|512|493238|5768851|58.34 2022|25-29|0.00141|0.00702|2.62|98379|690|490251|5275613|53.63 2022|30-34|0.00184|0.00918|2.59|97688|897|486281|4785362|48.99 2022|35-39|0.00225|0.01121|2.59|96792|1085|481341|4299081|44.42 2022|40-44|0.00285|0.01415|2.59|95706|1354|475267|3817740|39.89 2022|45-49|0.00371|0.01838|2.63|94352|1734|467646|3342472|35.43 2022|50-54|0.00529|0.02613|2.64|92618|2420|457373|2874826|31.04 2022|55-59|0.00795|0.03902|2.65|90199|3519|442723|2417453|26.80 2022|60-64|0.01173|0.05707|2.63|86679|4947|421650|1974730|22.78 2022|65-69|0.01636|0.07870|2.60|81732|6433|393195|1553080|19.00 2022|70-74|0.02380|0.11263|2.62|75300|8481|356321|1159884|15.40 2022|75-79|0.03820|0.17517|2.63|66818|11705|306402|803563|12.03 2022|80-84|0.06400|0.27715|2.58|55114|15275|238654|497161|9.02 2022|85-89|0.11007|0.43146|2.50|39839|17189|156159|258507|6.49 2022|90-94|0.18691|0.62371|2.33|22650|14127|75583|102348|4.52 2022|95-99|0.29637|0.79294|2.07|8523|6758|22803|26765|3.14 2022|100-104|0.43427|0.90435|1.77|1765|1596|3675|3961|2.24 2022|105-109|0.58547|0.95915|1.50|169|162|277|286|1.70 2022|110+|0.70614|1.00000|1.42|7|7|10|10|1.42 </datatable2>
The following Python code was used to convert from whitespace-delimited to WikiMedia table.
import re import sys for line in sys.stdin: # Split on whitespace words = re.split(r'\s+', line.strip()) if len(words) == 10: print("|".join(words))