Skip to content

Commit

Permalink
chore: use explicit .filter, not __getitem__
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCrews committed Oct 2, 2024
1 parent d565b06 commit f525dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mismo/cluster/_connected_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def _get_additional_labels(labels: ir.Table, record_ids: ir.Column) -> ir.Table:
nodes = record_ids.name("record_id").as_table()
is_missing_label = nodes.record_id.notin(labels.record_id)
max_existing_label = labels.component.max()
additional_labels = nodes[is_missing_label].select(
additional_labels = nodes.filter(is_missing_label).select(
"record_id",
component=(ibis.row_number() + max_existing_label + 1).cast("int64"),
)
Expand Down

0 comments on commit f525dc3

Please sign in to comment.