diff --git a/datatypes/epc/domain/historic_epc_matching.py b/datatypes/epc/domain/historic_epc_matching.py index 2eb590e8..95ca9d9f 100644 --- a/datatypes/epc/domain/historic_epc_matching.py +++ b/datatypes/epc/domain/historic_epc_matching.py @@ -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"]), )