Skip to content

Performance improvement in lookup #1839

@benhayes21

Description

@benhayes21
  1. build_model_data: Replaced row-by-row iteration with locations[columns].to_dict('records') - a single vectorized pandas operation
  2. build_dynamic_model_adjustment: Replaced row-by-row iteration with direct column access using .values

Both changes maintain the same functionality but are significantly more efficient since they avoid Python-level loops over DataFrame rows.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions