ibis.expr.api.StringValue.replace¶
-
StringValue.
replace
(arg, pattern, replacement)¶ Replaces each exactly occurrence of pattern with given replacement string. Like Python built-in str.replace
Parameters: pattern : string
replacement : string
Returns: replaced : string
Examples
>>> import ibis >>> table = ibis.table([('strings', 'string')]) >>> result = table.strings.replace('aaa', 'foo') # 'aaabbbaaa' becomes 'foobbbfoo' # noqa: E501