class_docstr: Namespace for string related expressions.
class_docstr_tok: ["Namespace","for","string","related","expressions","."]
docstr: Return the length of each string as the number of bytes.
  
  Returns
  -------
  Expr
      Expression of data type :class:`UInt32`.
  
  See Also
  --------
  len_chars
  
  Notes
  -----
  When working with non-ASCII text, the length in bytes is not the same as the
  length in characters. You may want to use :func:`len_chars` instead.
  Note that :func:`len_bytes` is much more performant (_O(1)_) than
  :func:`len_chars` (_O(n)_).
  
  Examples
  --------
  >>> df = pl.DataFrame({"a": ["Café", "345", "東京", None]})
  >>> df.with_columns(
  ...     pl.col("a").str.len_bytes().alias("n_bytes"),
  ...     pl.col("a").str.len_chars().alias("n_chars"),
  ... )
  shape: (4, 3)
  ┌──────┬─────────┬─────────┐
  │ a    ┆ n_bytes ┆ n_chars │
  │ ---  ┆ ---     ┆ ---     │
  │ str  ┆ u32     ┆ u32     │
  ╞══════╪═════════╪═════════╡
  │ Café ┆ 5       ┆ 4       │
  │ 345  ┆ 3       ┆ 3       │
  │ 東京 ┆ 6       ┆ 2       │
  │ null ┆ null    ┆ null    │
  └──────┴─────────┴─────────┘
docstr_tok: ["Return","the","length","of","each","string","as","the","number","of","bytes",".","Returns","--","--","--","-","Expr","Expression","of","data","type",":","class",":","`","UInt32","`",".","See","Also","--","--","--","--","len_chars","Notes","--","--","-","When","working","with","non-ASCII","text",",","the","length","in","bytes","is","not","the","same","as","the","length","in","characters",".","You","may","want","to","use",":","func",":","`","len_chars","`","instead",".","Note","that",":","func",":","`","len_bytes","`","is","much","more","performant","(","_O","(","1",")","_",")","than",":","func",":","`","len_chars","`","(","_O","(","n",")","_",")",".","Examples","--","--","--","--",">",">",">","df","=","pl.DataFrame","(","{","``","a","''",":","[","``","Caf\u00e9","''",",","``","345","''",",","``","\u6771\u4eac","''",",","None","]","}",")",">",">",">","df.with_columns","(","...","pl.col","(","``","a","''",")",".str.len_bytes","(",")",".alias","(","``","n_bytes","''",")",",","...","pl.col","(","``","a","''",")",".str.len_chars","(",")",".alias","(","``","n_chars","''",")",",","...",")","shape",":","(","4",",","3",")","\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510","\u2502","a","\u2506","n_bytes","\u2506","n_chars","\u2502","\u2502","--","-","\u2506","--","-","\u2506","--","-","\u2502","\u2502","str","\u2506","u32","\u2506","u32","\u2502","\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561","\u2502","Caf\u00e9","\u2506","5","\u2506","4","\u2502","\u2502","345","\u2506","3","\u2506","3","\u2502","\u2502","\u6771\u4eac","\u2506","6","\u2506","2","\u2502","\u2502","null","\u2506","null","\u2506","null","\u2502","\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"]
code: def len_bytes(self) -> Expr:
      """
      Return the length of each string as the number of bytes.
  
      Returns
      -------
      Expr
          Expression of data type :class:`UInt32`.
  
      See Also
      --------
      len_chars
  
      Notes
      -----
      When working with non-ASCII text, the length in bytes is not the same as the
      length in characters. You may want to use :func:`len_chars` instead.
      Note that :func:`len_bytes` is much more performant (_O(1)_) than
      :func:`len_chars` (_O(n)_).
  
      Examples
      --------
      >>> df = pl.DataFrame({"a": ["Café", "345", "東京", None]})
      >>> df.with_columns(
      ...     pl.col("a").str.len_bytes().alias("n_bytes"),
      ...     pl.col("a").str.len_chars().alias("n_chars"),
      ... )
      shape: (4, 3)
      ┌──────┬─────────┬─────────┐
      │ a    ┆ n_bytes ┆ n_chars │
      │ ---  ┆ ---     ┆ ---     │
      │ str  ┆ u32     ┆ u32     │
      ╞══════╪═════════╪═════════╡
      │ Café ┆ 5       ┆ 4       │
      │ 345  ┆ 3       ┆ 3       │
      │ 東京 ┆ 6       ┆ 2       │
      │ null ┆ null    ┆ null    │
      └──────┴─────────┴─────────┘
  
      """
      return wrap_expr(self._pyexpr.str_len_bytes())
  
imports: from __future__ import annotations
  import warnings
  from typing import TYPE_CHECKING
  import polars._reexport
  from polars import functions
  from polars.datatypes import Date, Datetime, Int32, Time, py_type_to_dtype
  from polars.exceptions import ChronoFormatWarning
  from polars.utils._parse_expr_input import parse_as_expression
  from polars.utils._wrap import wrap_expr
  from polars.utils.deprecation import deprecate_renamed_function, deprecate_renamed_parameter, rename_use_earliest_to_ambiguous
  from polars.utils.various import find_stacklevel
label_desc: Use image node_id 7 for calling the ExprStringNameSpace obj's underlying member method code with example usage: obj.len_bytes() and returns: wrap_expr