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