Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
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()