mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
renamed a function to be self commenting
This commit is contained in:
parent
dccb35c2bc
commit
bf91722f30
1 changed files with 2 additions and 2 deletions
|
|
@ -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"]),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue