Heating Degree Days
Real data: World Bank, Environment, Social and Governance (ESG) Data, indicator EN.CLC.HDDY.XD, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
A heating degree day (HDD) is a measurement designed to track energy use. It is the number of degrees that a day's average temperature is below 18°C (65°F). Daily degree days are accumulated to obtain annual values.
The numbers in 2024
In 2024, 144 countries have a value. The highest is Russian Federation (13,726); at the bottom, 3 countries tie at 0.01 (e.g. Belize, Cambodia, Sri Lanka). The median country value is 1,558.
Top 10 countries, 2024
value
Highest, 2024
| # | Country | Value |
|---|---|---|
| 1 | Russian Federation | 13,726 |
| 2 | Canada | 13,357 |
| 3 | Tajikistan | 11,746 |
| 4 | Iceland | 11,456 |
| 5 | Kyrgyz Republic | 11,209 |
| 6 | Mongolia | 10,854 |
| 7 | Norway | 9,617 |
| 8 | Finland | 9,487 |
| 9 | Sweden | 8,998 |
| 10 | Kazakhstan | 7,963 |
Lowest, 2024
Ties are listed A to Z.
| # | Country | Value |
|---|---|---|
| 1 | Sri Lanka | 0.01 |
| 2 | Cambodia | 0.01 |
| 3 | Belize | 0.01 |
| 4 | Timor-Leste | 0.02 |
| 5 | Cameroon | 0.19 |
| 6 | Bahamas, The | 0.21 |
| 7 | El Salvador | 0.25 |
| 8 | Nigeria | 0.29 |
| 9 | Thailand | 0.66 |
| 10 | Fiji | 1 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1960s | 157 |
| 1970s | 183 |
| 1980s | 183 |
| 1990s | 183 |
| 2000s | 180 |
| 2010s | 178 |
| 2020s | 172 |
First rows
heating-degree-days.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1960 | 6222.93 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1961 | 6241.25 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1962 | 6185.3 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1963 | 5580.67 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1964 | 6779.33 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1965 | 6189.67 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1966 | 5956.51 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1967 | 6331.35 |
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 | Heating Degree Days, 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 2024?
Russian Federation, with 13,726.
Excel (on the long CSV: E = year, F = value)
=FILTER(A2:A100000,(E2:E100000=2024)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2024)))SQL (table wb = the CSV)
SELECT country, value FROM wb WHERE year = 2024
AND value = (SELECT MAX(value) FROM wb WHERE year = 2024);pandas (df = pd.read_csv("heating-degree-days.csv"))
y = df[df.year == 2024]
y[y.value == y.value.max()][["country", "value"]]File: heating-degree-days.csv
How many countries report a value for 2024?
144 of the 217 economies in the file's country list.
Excel (on the long CSV: E = year, F = value)
=COUNTIF(E2:E100000,2024)SQL (table wb = the CSV)
SELECT COUNT(*) FROM wb WHERE year = 2024;pandas (df = pd.read_csv("heating-degree-days.csv"))
(df.year == 2024).sum()File: heating-degree-days.csv
What is the median across countries in 2024?
1,558 (median of the 144 country values; not a World Bank aggregate).
Excel (on the long CSV: E = year, F = value)
=MEDIAN(FILTER(F2:F100000,E2:E100000=2024))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 = 2024 ORDER BY value
LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2024) % 2
OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2024));pandas (df = pd.read_csv("heating-degree-days.csv"))
df[df.year == 2024]["value"].median()File: heating-degree-days.csv
Which country rose the most between 2014 and 2024?
Iceland: from 10,053 to 11,456, a rise of 1,402 (out of 143 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (heating-degree-days-wide.csv): add a column = [2024] - [2014], 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 = 2014 AND b.year = 2024 ORDER BY rise DESC LIMIT 1;pandas (df = pd.read_csv("heating-degree-days.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2024] - w[2014]).dropna().nlargest(1)File: heating-degree-days.csv
Which year has the most countries reporting?
1993, with 183 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("heating-degree-days.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: heating-degree-days.csv