vDataFrame[].str_count¶
In [ ]:
vDataFrame[].str_count(pat: str)
Computes the regular expression count match in each record of the vcolumn. The vcolumn will be transformed.
In [80]:
from verticapy.datasets import load_titanic
titanic = load_titanic()
display(titanic["name"])
In [81]:
titanic["name"].str_count(pat = " ([A-Za-z])+\.")
Out[81]:
See Also¶
| vDataFrame[].str_contains | Verifies if the regular expression is in each of the vcolumn records. |
| vDataFrame[].str_extract | Extracts the regular expression 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. |
