Skip to content

daft.functions.to_title_case#

to_title_case #

to_title_case(expr: Expression) -> Expression

Convert a string to title case.

Returns:

Name Type Description
Expression Expression

a String expression converted to title case

Source code in daft/functions/str.py
564
565
566
567
568
569
570
def to_title_case(expr: Expression) -> Expression:
    """Convert a string to title case.

    Returns:
        Expression: a String expression converted to title case
    """
    return Expression._call_builtin_scalar_fn("to_title_case", expr)