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.
  
  .. deprecated:: 0.19.8
      This method has been renamed to :func:`len_bytes`.
docstr_tok: ["Return","the","length","of","each","string","as","the","number","of","bytes",".","..","deprecated",":",":","0.19.8","This","method","has","been","renamed","to",":","func",":","`","len_bytes","`","."]
code: def lengths(self) -> Expr:
      """
      Return the length of each string as the number of bytes.
  
      .. deprecated:: 0.19.8
          This method has been renamed to :func:`len_bytes`.
  
      """
      return self.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 46 for calling the ExprStringNameSpace obj's underlying member method code with example usage: obj.lengths() and returns: self