vDataFrame[].str_slice¶
In [ ]:
vDataFrame[].str_slice(start: int,
step: int)
Slices the vcolumn. The vcolumn will be transformed.
In [88]:
from verticapy.datasets import load_titanic
titanic = load_titanic()
display(titanic["name"])
In [89]:
titanic["name"].str_slice(start = 0, step = 3)
Out[89]:
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_replace | Replaces the regular expression matches in each of the vcolumn record by an input value. |
