daft.Expression.str.upper

daft.Expression.str.upper#

Expression.str.upper() Expression[source]#

Convert UTF-8 string to all upper

Example

>>> import daft
>>> df = daft.from_pydict({"x": ["foo", "bar", "baz"]})
>>> df = df.select(df["x"].str.upper())
>>> df.show()
╭──────╮
│ x    │
│ ---  │
│ Utf8 │
╞══════╡
│ FOO  │
├╌╌╌╌╌╌┤
│ BAR  │
├╌╌╌╌╌╌┤
│ BAZ  │
╰──────╯

(Showing first 3 of 3 rows)
Returns:

a String expression which is self uppercased

Return type:

Expression