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 with all characters changed to uppercase.
For the corresponding Databricks SQL function, see ucase function.
Syntax
from pyspark.sql import functions as dbf
dbf.ucase(str=<str>)
Parameters
| Parameter | Type | Description |
|---|---|---|
str |
pyspark.sql.Column or str |
Input column or strings. Examples -------- >>> import pyspark.sql.functions as sf >>> spark.range(1).select(sf.ucase(sf.lit("Spark"))).show() +------------+ |ucase(Spark)| +------------+ | SPARK| +------------+ |
Examples
from pyspark.sql import functions as dbf
spark.range(1).select(dbf.ucase(dbf.lit("Spark"))).show()