Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns str enclosed by single quotes and each instance of single quote in it is preceded by a backslash.
Syntax
from pyspark.databricks.sql import functions as dbf
dbf.quote(col=<col>)
Parameters
| Parameter | Type | Description |
|---|---|---|
col |
pyspark.sql.Column or str |
target column to be quoted. |
Examples
from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame(["Don't"], "STRING")
df.select("*", dbf.quote("value")).show()