הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
Returns str enclosed by single quotes and each instance of single quote in it is preceded by a backslash.
Syntax
from pyspark.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.sql import functions as dbf
df = spark.createDataFrame(["Don't"], "STRING")
df.select("*", dbf.quote("value")).show()