Population · Public data

Macroeconomic & interest rates

Policy rates, bond yields, inflation, unemployment, GDP and Brent oil from FRED.

FRED (Federal Reserve Bank of St. Louis) — Federal Reserve, BLS, BEA, US Treasury, ECB, Eurostat, EIA · Public domain / open data · commons_pubdata.population.macro_rates

Read Markdown

Registered, not loaded yet: the table is not in the catalog. This page fills in after its first refresh.

Query it with DuckDB.

Bash
lhbox duckdb --catalog commons/pubdata
SQL · Latest reading of every macroeconomic benchmark series
SELECT series_id, country_code, series_name, frequency, date, value, unit
FROM commons_pubdata.population.macro_rates
QUALIFY row_number() OVER (PARTITION BY series_id ORDER BY date DESC) = 1
ORDER BY country_code NULLS LAST, series_id;

Read it where you work.

Public, read-only data. With an account, lhbox duckdb attaches the catalog as commons_pubdata; an agent with the LakehouseBox connector opens it with open_public_catalog("commons/pubdata"). Without one, DuckDB reads the public files directly.

More example queries

  • US year-over-year CPI inflation (%) by month since 2020
    SQL
    WITH cpi AS (
      SELECT date, value, lag(value, 12) OVER (ORDER BY date) AS value_12m_ago
      FROM commons_pubdata.population.macro_rates
      WHERE series_id = 'CPIAUCSL'
    )
    SELECT date, round((value / value_12m_ago - 1) * 100, 2) AS yoy_cpi_inflation_pct
    FROM cpi WHERE date >= DATE '2020-01-01' ORDER BY date DESC;

Know your columns.

ColumnTypeMeaning
series_idstringFRED series code (e.g. FEDFUNDS, DGS10, CPIAUCSL, UNRATE, ECBDFR, DCOILBRENTEU)
datedateobservation date (period start for monthly/quarterly series)
country_codestringUS, EU (Euro Area), or null for global commodity benchmarks
series_namestringhuman-readable indicator title
frequencystringdaily, weekly, monthly or quarterly
unitstringunit of measure (e.g. percent, index 1982-84=100, USD per barrel)
View all 7 columns
valuedoublenumeric observation value

Join keys: date, country_code, series_id.

Before you query.

  1. Series have different frequencies (daily, weekly, monthly, quarterly); filter on series_id before aggregating.
  2. Monthly series (CPIAUCSL, UNRATE, FEDFUNDS, IRLTLT01EZM156N, CP0000EZ19M086NEST) use the first day of the month (YYYY-MM-01) as date.
  3. CPIAUCSL and CP0000EZ19M086NEST are price level indices, not year-on-year growth rates: compute 12-month percentage change with lag(value, 12) OVER (ORDER BY date).

Source & licence.

Source
FRED (Federal Reserve Bank of St. Louis) — Federal Reserve, BLS, BEA, US Treasury, ECB, Eurostat, EIA
Licence
Public domain / open data (US Federal Reserve, BLS, BEA, US Treasury, EIA, ECB and Eurostat via FRED)
Attribution
Source: Federal Reserve Economic Data (FRED), Federal Reserve Bank of St. Louis; underlying series from the Board of Governors of the Federal Reserve System, U.S. Bureau of Labor Statistics, U.S. Bureau of Economic Analysis, U.S. Energy Information Administration, European Central Bank and Eurostat.
Coverage
United States (US), Euro Area (EU) and global Brent crude benchmark; 1947 to present (daily, weekly, monthly and quarterly series)
Refresh
weekly, the whole table replaced; source version n/a
Table
commons/pubdata · population.macro_rates · Iceberg v? · browse the catalog
Recipe
pubdata/recipes/macro_rates.py, registry entry pubdata/registry/macro_rates.yaml

Source: FRED (Federal Reserve Bank of St. Louis) — Federal Reserve, BLS, BEA, US Treasury, ECB, Eurostat, EIA · Public domain / open data · Snapshot shown: not loadedHTML for people. Markdown for agents.