Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/spatialdata/_core/query/relational_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def _get_joined_table_indices(
-------
The indices that of the table that match the SpatialElement indices.
"""
mask = np.isin(table_instance_key_column.to_numpy(), element_indices)
mask = table_instance_key_column.isin(element_indices).to_numpy()
if joined_indices is None:
if match_rows == "left":
_, joined_indices = _match_rows(table_instance_key_column, mask, element_indices, match_rows)
Expand Down Expand Up @@ -232,7 +232,7 @@ def _get_masked_element(
-------
The masked spatial element based on the provided indices and match rows.
"""
mask = np.isin(table_instance_key_column.to_numpy(), element_indices)
mask = table_instance_key_column.isin(element_indices).to_numpy()
masked_table_instance_key_column = table_instance_key_column[mask]
mask_values: NDArray[Any] | pd.Index | None = (
masked_values if len(masked_values := masked_table_instance_key_column.to_numpy()) != 0 else None
Expand Down
Loading