Dimension 5.1: Legislation and governance
Real data: World Bank, Statistical Performance Indicators, indicator SPI.DIM5.1.INDEX, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Included in dashboard, but not index because of insufficient country coverage. This indicator is based on PARIS21 indicators on SDG 17.18.2 (national statistical legislation compliance with UN Fundamental Principles of Official Statistics), existence of National Statistical Council, national statistical strategy generation, national statistical plan. Limited country coverage makes cross country comparison limited. A global database of statistical and data legislation and governance practice would be a valuable resource for capacity building in general not just for the SPI.
The numbers in 2023
In 2023, 182 countries have a value. At the top, 153 countries tie at 1 (e.g. Albania, Algeria, Andorra); at the bottom, 29 countries tie at 0 (e.g. Antigua and Barbuda, Bangladesh, Barbados). The median country value is 1.
Highest, 2023
Ties are listed A to Z.
| # | Country | Value |
|---|---|---|
| 1 | Albania | 1 |
| 2 | Algeria | 1 |
| 3 | Andorra | 1 |
| 4 | Argentina | 1 |
| 5 | Armenia | 1 |
| 6 | Australia | 1 |
| 7 | Austria | 1 |
| 8 | Azerbaijan | 1 |
| 9 | Belarus | 1 |
| 10 | Belgium | 1 |
Lowest, 2023
Ties are listed A to Z.
| # | Country | Value |
|---|---|---|
| 1 | Zimbabwe | 0 |
| 2 | Venezuela, RB | 0 |
| 3 | Tunisia | 0 |
| 4 | St. Lucia | 0 |
| 5 | Sri Lanka | 0 |
| 6 | Sierra Leone | 0 |
| 7 | Morocco | 0 |
| 8 | Malawi | 0 |
| 9 | Korea, Dem. People's Rep. | 0 |
| 10 | Jamaica | 0 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 2000s | 35 |
| 2010s | 152 |
| 2020s | 182 |
First rows
dimension-5-1-legislation-and-governance.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Albania | ALB | Europe & Central Asia | Upper middle income | 2019 | 1 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2020 | 1 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2021 | 1 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2022 | 1 |
| Albania | ALB | Europe & Central Asia | Upper middle income | 2023 | 1 |
| Algeria | DZA | Middle East, North Africa, Afghanistan & Pakistan | Upper middle income | 2019 | 1 |
| Algeria | DZA | Middle East, North Africa, Afghanistan & Pakistan | Upper middle income | 2020 | 1 |
| Algeria | DZA | Middle East, North Africa, Afghanistan & Pakistan | Upper middle income | 2021 | 1 |
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 | Dimension 5.1: Legislation and governance, 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 2023?
There is a tie: 153 countries share the highest value, 1 (for example Albania, Algeria, Andorra).
Excel (on the long CSV: E = year, F = value)
=FILTER(A2:A100000,(E2:E100000=2023)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2023)))SQL (table wb = the CSV)
SELECT country, value FROM wb WHERE year = 2023
AND value = (SELECT MAX(value) FROM wb WHERE year = 2023);pandas (df = pd.read_csv("dimension-5-1-legislation-and-governance.csv"))
y = df[df.year == 2023]
y[y.value == y.value.max()][["country", "value"]]File: dimension-5-1-legislation-and-governance.csv
How many countries report a value for 2023?
182 of the 217 economies in the file's country list.
Excel (on the long CSV: E = year, F = value)
=COUNTIF(E2:E100000,2023)SQL (table wb = the CSV)
SELECT COUNT(*) FROM wb WHERE year = 2023;pandas (df = pd.read_csv("dimension-5-1-legislation-and-governance.csv"))
(df.year == 2023).sum()File: dimension-5-1-legislation-and-governance.csv
What is the median across countries in 2023?
1 (median of the 182 country values; not a World Bank aggregate).
Excel (on the long CSV: E = year, F = value)
=MEDIAN(FILTER(F2:F100000,E2:E100000=2023))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 = 2023 ORDER BY value
LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2023) % 2
OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2023));pandas (df = pd.read_csv("dimension-5-1-legislation-and-governance.csv"))
df[df.year == 2023]["value"].median()File: dimension-5-1-legislation-and-governance.csv
Which country rose the most between 2013 and 2023?
Australia: from 1 to 1, a rise of 0 (out of 35 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (dimension-5-1-legislation-and-governance-wide.csv): add a column = [2023] - [2013], 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 = 2013 AND b.year = 2023 ORDER BY rise DESC LIMIT 1;pandas (df = pd.read_csv("dimension-5-1-legislation-and-governance.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2023] - w[2013]).dropna().nlargest(1)File: dimension-5-1-legislation-and-governance.csv
Which year has the most countries reporting?
2023, with 182 countries.
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("dimension-5-1-legislation-and-governance.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: dimension-5-1-legislation-and-governance.csv