swat.cas.table.CASColumn.str.index

CASColumn.str.index(self, 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
substring or CASColumn

The substring to search for.

startint, optional

The position in the source string to start looking.

endint, optional

The position in the source string to stop looking.

Returns
CASColumn
Raises
ValueError

If the substring is not found in a data element