class_docstr: Series.str namespace.
class_docstr_tok: ["Series.str","namespace","."]
docstr: Return the length of each string as the number of bytes.
  
  Returns
  -------
  Series
      Series 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
  --------
  >>> s = pl.Series(["Café", "345", "東京", None])
  >>> s.str.len_bytes()
  shape: (4,)
  Series: '' [u32]
  [
      5
      3
      6
      null
  ]
docstr_tok: ["Return","the","length","of","each","string","as","the","number","of","bytes",".","Returns","--","--","--","-","Series","Series","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","--","--","--","--",">",">",">","s","=","pl.Series","(","[","``","Caf\u00e9","''",",","``","345","''",",","``","\u6771\u4eac","''",",","None","]",")",">",">",">","s.str.len_bytes","(",")","shape",":","(","4",",",")","Series",":","``","[","u32","]","[","5","3","6","null","]"]
code: def len_bytes(self) -> Series:
      """
      Return the length of each string as the number of bytes.
  
      Returns
      -------
      Series
          Series 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
      --------
      >>> s = pl.Series(["Café", "345", "東京", None])
      >>> s.str.len_bytes()
      shape: (4,)
      Series: '' [u32]
      [
          5
          3
          6
          null
      ]
  
      """
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from polars.series.utils import expr_dispatch
  from polars.utils.deprecation import deprecate_renamed_function, deprecate_renamed_parameter
label_desc: Use image node_id 7 for calling the StringNameSpace obj's underlying member method code with example usage: obj.len_bytes() without return types