Skip to content

LazyColumn.str.upper

upper

upper() -> LazyColumn

Converts all characters in the string to uppercase.

Returns:

Name Type Description
LazyColumn LazyColumn

A new LazyColumn with all uppercase string values.

Examples:

print(df.head())
#    col1 my_string_column
# 0     1           "hello"
# 1     2           "WoRlD"
# 2     3          "Test123"
# 3     4             None
# 4     5            "abc"

df["my_string_column"].str.upper()
# ["HELLO", "WORLD", "TEST123", None, "ABC"]