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