jaro_winkler_distance¶
In [ ]:
jaro_winkler_distance(expr1,
expr2,)
Calculates and returns the Jaro-Winkler distance between two strings.
Parameters¶
| Name | Type | Optional | Description |
|---|---|---|---|
expr1 | object | ❌ | Expression. |
expr2 | object | ❌ | Expression. |
In [10]:
from verticapy import *
df = tablesample({"x": ['hello', 'apple', 'heroes', 'allo']}).to_vdf()
display(df)
In [11]:
# Importing the stats module
import verticapy.stats as st
# Applying the week function
df["jaro_winkler_distance_x"] = st.jaro_winkler_distance(df["x"], 'heyllow')
display(df)
