daft.functions.length_bytes#
length_bytes #
length_bytes(expr: Expression) -> Expression
Retrieves the length for a UTF-8 string column in bytes.
Returns:
| Name | Type | Description |
|---|---|---|
Expression | Expression | an UInt64 expression with the length of each string |
Examples:
1 2 3 4 5 | |
โญโโโโโโโโโฎ
โ x โ
โ --- โ
โ UInt64 โ
โโโโโโโโโโก
โ 8 โ
โโโโโโโโโโค
โ 5 โ
โโโโโโโโโโค
โ 3 โ
โฐโโโโโโโโโฏ
(Showing first 3 of 3 rows) Source code in daft/functions/str.py
1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 | |