swat.cas.table.CASColumn.str.index

CASColumn.str.index(sub, start=0, end=None)

Return lowest index of pattern in each value

This method works the same way as find() except that an exception is raised when the pattern is not found.

Parameters:
sub : string or CASColumn

The substring to search for.

start : int, optional

The position in the source string to start looking.

end : int, optional

The position in the source string to stop looking.

Returns:
CASColumn
Raises:
ValueError

If the substring is not found in a data element