class_docstr: Namespace for string related expressions.
class_docstr_tok: ["Namespace","for","string","related","expressions","."]
docstr: Remove suffix.
  
  The suffix will be removed from the string exactly once, if found.
  
  .. note::
      This method strips the exact character sequence provided in
      `suffix` from the end of the input. To strip a set of characters
      in any order, use :func:`strip_chars_end` instead.
  
  Parameters
  ----------
  suffix
      The suffix to be removed.
  
  See Also
  --------
  strip_chars_end
  strip_prefix
  
  Examples
  --------
  >>> df = pl.DataFrame({"a": ["foobar", "foobarbar", "foo", "bar"]})
  >>> df.with_columns(pl.col("a").str.strip_suffix("bar").alias("stripped"))
  shape: (4, 2)
  ┌───────────┬──────────┐
  │ a         ┆ stripped │
  │ ---       ┆ ---      │
  │ str       ┆ str      │
  ╞═══════════╪══════════╡
  │ foobar    ┆ foo      │
  │ foobarbar ┆ foobar   │
  │ foo       ┆ foo      │
  │ bar       ┆          │
  └───────────┴──────────┘
docstr_tok: ["Remove","suffix",".","The","suffix","will","be","removed","from","the","string","exactly","once",",","if","found",".","..","note",":",":","This","method","strips","the","exact","character","sequence","provided","in","`","suffix","`","from","the","end","of","the","input",".","To","strip","a","set","of","characters","in","any","order",",","use",":","func",":","`","strip_chars_end","`","instead",".","Parameters","--","--","--","--","--","suffix","The","suffix","to","be","removed",".","See","Also","--","--","--","--","strip_chars_end","strip_prefix","Examples","--","--","--","--",">",">",">","df","=","pl.DataFrame","(","{","``","a","''",":","[","``","foobar","''",",","``","foobarbar","''",",","``","foo","''",",","``","bar","''","]","}",")",">",">",">","df.with_columns","(","pl.col","(","``","a","''",")",".str.strip_suffix","(","``","bar","''",")",".alias","(","``","stripped","''",")",")","shape",":","(","4",",","2",")","\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510","\u2502","a","\u2506","stripped","\u2502","\u2502","--","-","\u2506","--","-","\u2502","\u2502","str","\u2506","str","\u2502","\u255e\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u256a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2561","\u2502","foobar","\u2506","foo","\u2502","\u2502","foobarbar","\u2506","foobar","\u2502","\u2502","foo","\u2506","foo","\u2502","\u2502","bar","\u2506","\u2502","\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"]
code: def strip_suffix(self, suffix: IntoExpr) -> Expr:
      """
      Remove suffix.
  
      The suffix will be removed from the string exactly once, if found.
  
      .. note::
          This method strips the exact character sequence provided in
          `suffix` from the end of the input. To strip a set of characters
          in any order, use :func:`strip_chars_end` instead.
  
      Parameters
      ----------
      suffix
          The suffix to be removed.
  
      See Also
      --------
      strip_chars_end
      strip_prefix
  
      Examples
      --------
      >>> df = pl.DataFrame({"a": ["foobar", "foobarbar", "foo", "bar"]})
      >>> df.with_columns(pl.col("a").str.strip_suffix("bar").alias("stripped"))
      shape: (4, 2)
      ┌───────────┬──────────┐
      │ a         ┆ stripped │
      │ ---       ┆ ---      │
      │ str       ┆ str      │
      ╞═══════════╪══════════╡
      │ foobar    ┆ foo      │
      │ foobarbar ┆ foobar   │
      │ foo       ┆ foo      │
      │ bar       ┆          │
      └───────────┴──────────┘
  
      """
      suffix = parse_as_expression(suffix, str_as_lit=True)
      return wrap_expr(self._pyexpr.str_strip_suffix(suffix))
  
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 17 for calling the ExprStringNameSpace obj's underlying member method code with example usage: obj.strip_suffix(suffix) and returns: wrap_expr