Merchandise imports by the reporting economy, residual (% of total merchandise imports)
Real data: World Bank, World Development Indicators, indicator TM.VAL.MRCH.RS.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.
What it measures
Merchandise imports by the reporting economy residuals are the total merchandise imports by the reporting economy from the rest of the world as reported in the IMF's Direction of trade database, less the sum of imports by the reporting economy from high-, low-, and middle-income economies according to the World Bank classification of economies. Includes trade with unspecified partners or with economies not covered by World Bank classification. Data are as a percentage of total merchandise imports by the economy.
The numbers in 2023
In 2023, 205 countries have a value. The highest is Dominica (3.51); the lowest is Ethiopia (-1.12e-14). The median country value is 0.000386. The World Bank's World aggregate for 2023 is 0.0332.
Top 10 countries, 2023
% of total merchandise imports
Highest, 2023
| # | Country | Value |
|---|---|---|
| 1 | Dominica | 3.51 |
| 2 | Cuba | 2.49 |
| 3 | Curacao | 2.31 |
| 4 | Haiti | 2.13 |
| 5 | Bermuda | 2.05 |
| 6 | Lebanon | 0.586 |
| 7 | Dominican Republic | 0.563 |
| 8 | Guyana | 0.362 |
| 9 | Colombia | 0.213 |
| 10 | Guatemala | 0.187 |
Lowest, 2023
| # | Country | Value |
|---|---|---|
| 1 | Ethiopia | -1.12e-14 |
| 2 | Georgia | -3.06e-15 |
| 3 | Zimbabwe | 0 |
| 4 | Yemen, Rep. | 0 |
| 5 | Viet Nam | 0 |
| 6 | Venezuela, RB | 0 |
| 7 | Vanuatu | 0 |
| 8 | Uganda | 0 |
| 9 | Tuvalu | 0 |
| 10 | Turkmenistan | 0 |
How many countries report, by decade
| Decade | Most countries in one year |
|---|---|
| 1960s | 123 |
| 1970s | 133 |
| 1980s | 154 |
| 1990s | 179 |
| 2000s | 202 |
| 2010s | 205 |
| 2020s | 205 |
World aggregate by year
As published by the World Bank (in the regions file, not the country file).
| Year | World |
|---|---|
| 2023 | 0.0332 |
| 2022 | 0.0211 |
| 2021 | 0.0227 |
| 2020 | 0.0357 |
| 2019 | 0.0991 |
| 2018 | 0.197 |
| 2017 | 0.196 |
| 2016 | 0.195 |
| 2015 | 0.247 |
| 2014 | 0.393 |
| 2013 | 0.44 |
| 2012 | 0.484 |
By region, 2023
| World Bank region | Value |
|---|---|
| North America | 0.0992 |
| Latin America & Caribbean | 0.0834 |
| South Asia | 0.0235 |
| Europe & Central Asia | 0.0192 |
| Middle East, North Africa, Afghanistan & Pakistan | 0.0133 |
| East Asia & Pacific | 0.0126 |
| Sub-Saharan Africa | 0.000473 |
First rows
merchandise-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv
| countrytext | iso3text | regiontext | income_grouptext | yearnumber | valuenumber |
|---|---|---|---|---|---|
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1964 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1965 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1967 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1968 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1969 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1970 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1971 | 0 |
| Afghanistan | AFG | Middle East, North Africa, Afghanistan & Pakistan | Low income | 1973 | -7.2666613969666e-15 |
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 | Merchandise imports by the reporting economy, residual (% of total merchandise imports), 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?
Dominica, with 3.51.
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("merchandise-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv"))
y = df[df.year == 2023]
y[y.value == y.value.max()][["country", "value"]]File: merchandise-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv
How many countries report a value for 2023?
205 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("merchandise-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv"))
(df.year == 2023).sum()File: merchandise-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv
What is the median across countries in 2023?
0.000386 (median of the 205 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("merchandise-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv"))
df[df.year == 2023]["value"].median()File: merchandise-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv
Which country rose the most between 2013 and 2023?
Dominica: from 0.0282 to 3.51, a rise of 3.48 (out of 205 countries with both years).
Excel (on the long CSV: E = year, F = value)
Use the wide file (merchandise-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports-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("merchandise-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv"))
w = df.pivot(index="country", columns="year", values="value")
(w[2023] - w[2013]).dropna().nlargest(1)File: merchandise-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv
Which year has the most countries reporting?
2023, with 205 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("merchandise-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv"))
df.groupby("year").size().sort_values(ascending=False).head(1)File: merchandise-imports-by-the-reporting-economy-residual-percent-of-total-merchandise-imports.csv