soundex¶
In [ ]:
soundex(expr1,)
Returns the Soundex encoding of varchar strings as a four-character string.
Parameters¶
| Name | Type | Optional | Description |
|---|---|---|---|
expr | object | ❌ | Expression. |
In [6]:
from verticapy import *
df = tablesample({"x": ['hello', 'apple', 'heroes', 'allo']}).to_vdf()
display(df)
In [8]:
# Importing the stats module
import verticapy.stats as st
# Applying the week function
df["soundex_x"] = st.soundex(df["x"],)
display(df)
