collate
Marks a given column with specified collation.
For the corresponding Databricks SQL function, see collate expression.
Syntax
Python
from pyspark.databricks.sql import functions as dbf
dbf.collate(col=<col>, collation=<collation>)
Parameters
Parameter | Type | Description |
|---|---|---|
|
| Target string column to work on. |
|
| Target collation name. |
Returns
pyspark.sql.Column: A new column of string type, where each value has the specified collation.