ibis.expr.api.StringValue.find_in_set¶
-
StringValue.
find_in_set
(str_list)¶ Returns postion (0 indexed) of first occurence of argument within a list of strings. No string in list can have a comma Returns -1 if search string isn’t found or if search string contains ‘,’
- Parameters
str_list (list of strings) –
Examples
>>> import ibis >>> table = ibis.table([('strings', 'string')]) >>> result = table.strings.find_in_set(['a', 'b'])
- Returns
position
- Return type