fix order of code
@@ -1630,7 +1630,6 @@ class Linker:
return res["count_of_pairwise_comparisons_generated"]
def count_num_comparisons_from_blocking_rules_for_prediction(self, df_predict):
- sql = count_num_comparisons_from_blocking_rules_for_prediction_sql(df_predict)
"""Counts the maginal number of edges created from each of the blocking rules
in `blocking_rules_to_generate_predictions`
@@ -1654,6 +1653,7 @@ class Linker:
SplinkDataFrame: A SplinkDataFrame of the pairwise comparisons and
estimated pairwise comparisons generated by the blocking rules.
""" # noqa: E501
+ sql = count_num_comparisons_from_blocking_rules_for_prediction_sql(df_predict)
match_key_analysis = self._enqueue_and_execute_sql_pipeline(
sql, "__splink__match_key_analysis"
)
