Homelessness
The uk_open_data.homelessness module loads the Ministry of Housing,
Communities and Local Government's
statutory homelessness tables
for every council in England. It reads the latest quarter.
load_homelessness()
from uk_open_data.homelessness import load_homelessness
councils = load_homelessness()
councils[["geography_name", "households_owed_a_duty"]]
It returns one row per council (local housing authority), 296 in all, as a pandas or polars table, whichever you have:
| Column | What it holds |
|---|---|
geography_code |
The council's code, which joins to boundaries and statistics |
geography_name |
The council's name, as MHCLG gives it |
quarter |
The quarter the figures are for, such as "April to June 2026" |
households_owed_a_duty |
Households the council assessed as owed a prevention or relief duty in the quarter (table A1) |
households_in_temporary_accommodation |
Households in temporary accommodation the council arranged, on the last day of the quarter (table TA1) |
A council owes a prevention duty to a household threatened with homelessness within 56 days, and a relief duty to one that is already homeless. A household is counted once, when it is first assessed. Temporary accommodation is counted by the council that placed the household, even when the home is in another council's area.
The figures count households, not people.
Councils have the codes MHCLG gives them, which are today's, the same codes the
analyses compare in. To join them to figures in older codes, such as the 2021
Census tables, bring those forward with
uk_open_data.areas.
Councils with no figures
Some councils send MHCLG no figures for a quarter, and MHCLG holds a few figures back. Their counts are missing (null), never zero. In April to June 2026, 6 councils had no figures for duties owed and 11 had none for temporary accommodation. MHCLG's own totals for England estimate these councils, so adding up the councils gives less than the national total.
The figures are fetched once and held for the rest of the session.
clear_cache() forgets them, to fetch a new quarter.
How the latest quarter is found
MHCLG publishes a new spreadsheet every quarter, at a new address, and revises earlier quarters later. The loader asks the gov.uk content API for the page's files and takes the latest quarter's "Detailed local authority level tables". Each table's title runs to a few lines, so the loader finds its header by its first cell, "Organisation Identification Code".
If the page lists no quarter's tables, or a table or column it reads has
changed, the loader fails with a ValueError naming MHCLG's tables. A weekly
check fetches the latest quarter to make sure it still reads.
The source and how to credit it
| Publisher | Ministry of Housing, Communities and Local Government |
| Coverage | England, quarterly |
| Licence | Open Government Licence v3.0 |
| Credit | Source: Ministry of Housing, Communities and Local Government, statutory homelessness detailed local authority-level tables, April to June 2026. Contains public sector information licensed under the Open Government Licence v3.0. |
list_datasets() lists it as mhclg-homelessness.