daft.functions.soundex#
soundex #
soundex(expr: Expression) -> Expression
Returns the Soundex code of the string.
Soundex is a phonetic algorithm that produces a 4-character code representing the sound of the string. This is compatible with Spark's soundex function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
expr | Expression | The string expression | required |
Returns:
| Name | Type | Description |
|---|---|---|
Expression | Expression | a String expression with the Soundex code |
Examples:
1 2 3 4 5 | |
╭────────╮
│ x │
│ --- │
│ String │
╞════════╡
│ R163 │
├╌╌╌╌╌╌╌╌┤
│ R163 │
├╌╌╌╌╌╌╌╌┤
│ S530 │
╰────────╯
(Showing first 3 of 3 rows) Source code in daft/functions/str.py
1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 | |