search#
- cudf._lib.pylibcudf.search.contains(Column haystack, Column needles) Column #
Check whether needles are present in haystack.
- Parameters:
- haystackTable
The search space.
- needlesTable
The values for which to search.
- Returns:
- Column
Boolean indicator for each needle.
- cudf._lib.pylibcudf.search.lower_bound(Table haystack, Table needles, list column_order, list null_precedence) Column #
Find smallest indices in haystack where needles may be inserted to retain order.
- Parameters:
- haystackTable
The search space.
- needlesTable
The values for which to find insertion points.
- column_orderList[ColumnOrder]
Whether each column should be sorted in ascending or descending order.
- null_precedenceList[NullOrder]
Whether nulls should come before or after non-nulls.
- Returns:
- Column
The insertion points
- cudf._lib.pylibcudf.search.upper_bound(Table haystack, Table needles, list column_order, list null_precedence) Column #
Find largest indices in haystack where needles may be inserted to retain order.
- Parameters:
- haystackTable
The search space.
- needlesTable
The values for which to find insertion points.
- column_orderList[ColumnOrder]
Whether each column should be sorted in ascending or descending order.
- null_precedenceList[NullOrder]
Whether nulls should come before or after non-nulls.
- Returns:
- Column
The insertion points