return num not dict
@@ -1468,7 +1468,7 @@ class Linker:
blocking_rule: str,
link_type: str = None,
unique_id_column_name: str = None,
- ) -> dict:
+ ) -> int:
"""Compute the number of pairwise record comparisons that would be generated by
a blocking rule
@@ -1486,8 +1486,7 @@ class Linker:
>>> linker.compute_number_of_comparisons_generated_by_blocking_rule(br)
Returns:
- dict: A dictionray containing the number of comparisons generated by the
- blocking rule
+ int: The number of comparisons generated by the blocking rule
"""
sql = vertically_concatenate_sql(self)
@@ -1498,7 +1497,7 @@ class Linker:
)
self._enqueue_sql(sql, "__splink__analyse_blocking_rule")
res = self._execute_sql_pipeline().as_record_dict()[0]
- return res
+ return res["count_of_pairwise_comparisons_generated"]
def match_weights_chart(self):
"""Display a chart of the (partial) match weights of the linkage model
