renamed a function to be self commenting

This commit is contained in:
Jun-te Kim 2026-05-11 08:45:26 +00:00
parent dccb35c2bc
commit bf91722f30

View file

@ -15,7 +15,7 @@ DEFAULT_S3_ROOT = "s3://retrofit-data-dev/historical_epc"
_EXTRA_COLS = {"lexiscore", "lexirank"}
def _row_to_historic_epc(row: pd.Series) -> HistoricEpc:
def _map_historic_epc_pandas_row_to_domain(row: pd.Series) -> HistoricEpc:
kwargs = {
col.lower(): pandas_cell_to_str(val)
for col, val in row.items()
@ -94,7 +94,7 @@ def match_addresses_for_postcode(
matches = [
ScoredHistoricEpc(
record=_row_to_historic_epc(row),
record=_map_historic_epc_pandas_row_to_domain(row),
lexiscore=float(row["lexiscore"]),
lexirank=int(row["lexirank"]),
)