vDataFrame[].str_replace¶
In [ ]:
vDataFrame[].str_replace(to_replace: str,
value: str = "")
Replaces the regular expression matches in each of the vcolumn record by an input value. The vcolumn will be transformed.
In [86]:
from verticapy.datasets import load_titanic
titanic = load_titanic()
display(titanic["name"])
In [87]:
titanic["name"].str_replace(to_replace = " ([A-Za-z])+\.",
value = "VERTICAPY")
Out[87]:
See Also¶
| vDataFrame[].str_contains | Verifies if the regular expression is in each of the vcolumn records. |
| vDataFrame[].str_count | Computes the regular expression count match in each record of the vcolumn. |
| vDataFrame[].str_extract | Extracts the regular expression in each record of the vcolumn. |
| vDataFrame[].str_slice | Slices the vcolumn. |
