vDataFrame[].str_extract¶
In [ ]:
vDataFrame[].str_extract(pat: str)
Extracts the regular expression in each record of the vcolumn. The vcolumn will be transformed.
In [84]:
from verticapy.datasets import load_titanic
titanic = load_titanic()
display(titanic["name"])
In [85]:
titanic["name"].str_extract(pat = " ([A-Za-z])+\.")
Out[85]:
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_replace | Replaces the regular expression matches in each of the vcolumn record by an input value. |
| vDataFrame[].str_slice | Slices the vcolumn. |
