Napomena
Za pristup ovoj stranici potrebna je autorizacija. Možete se pokušati prijaviti ili promijeniti direktorije.
Za pristup ovoj stranici potrebna je autorizacija. Možete pokušati promijeniti direktorije.
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()