Skip to content

Commit

Permalink
Move out of loop
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinL committed Jan 17, 2024
1 parent 1ece5d7 commit ca0e202
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions splink/blocking.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,11 @@ def materialise_exploded_id_tables(linker: Linker):
br for br in blocking_rules if isinstance(br, ExplodingBlockingRule)
]
exploded_tables = []
for br in exploding_blocking_rules:
input_dataframe = linker._initialise_df_concat_with_tf()

input_colnames = {col.name for col in input_dataframe.columns}
input_dataframe = linker._initialise_df_concat_with_tf()
input_colnames = {col.name for col in input_dataframe.columns}

for br in exploding_blocking_rules:
arrays_to_explode_quoted = [
InputColumn(colname, sql_dialect=linker._sql_dialect).quote().name
for colname in br.array_columns_to_explode
Expand Down

0 comments on commit ca0e202

Please sign in to comment.