Skip to content

Commit

Permalink
docs: Rename str.lengths to str.len_bytes in description text (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
anergictcell authored Jul 15, 2024
1 parent f90753b commit 83b7bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user-guide/expressions/strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ String processing functions are available in the `str` namespace.

##### Accessing the string namespace

The `str` namespace can be accessed through the `.str` attribute of a column with `String` data type. In the following example, we create a column named `animal` and compute the length of each element in the column in terms of the number of bytes and the number of characters. If you are working with ASCII text, then the results of these two computations will be the same, and using `lengths` is recommended since it is faster.
The `str` namespace can be accessed through the `.str` attribute of a column with `String` data type. In the following example, we create a column named `animal` and compute the length of each element in the column in terms of the number of bytes and the number of characters. If you are working with ASCII text, then the results of these two computations will be the same, and using `len_bytes` is recommended since it is faster.

{{code_block('user-guide/expressions/strings','df',['str.len_bytes','str.len_chars'])}}

Expand Down

0 comments on commit 83b7bef

Please sign in to comment.