improve
This commit is contained in:
parent
8688b7475e
commit
e8345cbdc1
40 changed files with 1980 additions and 904 deletions
|
|
@ -13,7 +13,11 @@ def build_postcode_mapping(arcgis_path: Path) -> pl.DataFrame:
|
|||
Uses OS National Grid coordinates (east1m, north1m) which are Cartesian metres,
|
||||
so Euclidean distance via cKDTree gives accurate results without projection.
|
||||
"""
|
||||
arcgis = pl.scan_parquet(arcgis_path).filter(pl.col("ctry25cd") == "E92000001")
|
||||
arcgis = (
|
||||
pl.scan_parquet(arcgis_path)
|
||||
.filter(pl.col("ctry25cd") == "E92000001")
|
||||
.with_columns(pl.col("doterm").cast(pl.Utf8).alias("doterm"))
|
||||
)
|
||||
|
||||
active = (
|
||||
arcgis.filter(pl.col("doterm").is_null())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue