Python + SE Correl

Ukrainian banking sector NPLs (2026-08): fetch, convert, and calculate with Python

Non-performing loans (NPLs) are tracked here with executable Python, not pasted figures. As of {{asOf}}, the site BS1 coverage proxy is {{nplCoveragePct|N2}}% on gross loans {{grossLoans|N0}} (MoM {{grossLoansMomPct|N2}}%). Official NBU prints come from the supervisory NPL_AO workbook on bank.gov.ua.


Pipeline: discover NPL_AO_*_eng.xlsx → parse NPL_Total (stdlib zip/xml) → calculate ratio = NPL / Total loans × 100 → MoM pp change → compare with BS1 |provisions|/gross loans. BS1 lineage: {{nplDataSource}}.

  • Block 1 — Fetch & convert: download the latest NBU workbook and build a monthly panel.
  • Block 2 — Calculate: recompute the Total-loans NPL ratio and month-on-month dynamics in Python.
  • Block 3 — Cross-check: compute BS1 coverage from live_data() and chart both series.
  • Narrative tokens such as {{nplCoveragePct}} stay bound to the live snapshot; NBU points come from the cells below.

Python block 1 — fetch the NBU supervisory page, resolve the newest NPL_AO_*_eng.xlsx, and convert the NPL_Total sheet into a structured monthly table (Total loans, NPL stock, ratio).


Python block 2 — calculations on the converted panel: NPL ratio from stocks, MoM change in percentage points, and peak/trough over the window. The defining relation is:


Python block 3 — FINREP BS1 coverage proxy from live_data() (|loan impairment provisions| / gross customer loans × 100), then compare with the official NBU ratio. Live proxy as of {{asOf}}: {{nplCoveragePct|N2}}% ({{nplCoverageChangePp|N2}} pp MoM).


Reading tip for {{asOf}}: treat the NBU Total-loans NPL ratio as the official print and the BS1 coverage series as an impairment-stock proxy. If they diverge, check definitions before writing the narrative. Methodology: https://bank.gov.ua/en/stability/npl


Detail

← All articles