pyspark.sql.functions.soundex¶
-
pyspark.sql.functions.
soundex
(col: ColumnOrName) → pyspark.sql.column.Column¶ Returns the SoundEx encoding for a string
Examples
>>> df = spark.createDataFrame([("Peters",),("Uhrbach",)], ['name']) >>> df.select(soundex(df.name).alias("soundex")).collect() [Row(soundex='P362'), Row(soundex='U612')]