daft.Expression.str.lower

daft.Expression.str.lower#

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

Convert UTF-8 string to all lowercase

Example

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

(Showing first 3 of 3 rows)
Returns:

a String expression which is self lowercased

Return type:

Expression