Improve data

This commit is contained in:
Andras Schmelczer 2026-06-10 07:54:25 +01:00
parent b4d66a28c1
commit 85da1941aa
31 changed files with 901 additions and 319 deletions

View file

@ -6,6 +6,13 @@ import numpy as np
import polars as pl
CURRENT_YEAR = 2026
# Latest COMPLETE calendar year. The current year's transactions are only
# partially reported (Land Registry lags ~2-3 months), so a sector's thin
# partial-year repeat-sale set produces wild index betas (e.g. +334% in a
# single sector). The index is SOLVED only on complete years (<= this) and
# forward-filled/trend-extrapolated to CURRENT_YEAR, so current-value
# projections follow the established trend instead of a partial-year spike.
LATEST_COMPLETE_YEAR = CURRENT_YEAR - 1
_today = date.today()
CURRENT_FRAC_YEAR = _today.year + (_today.month - 1) / 12