class_docstr: String Methods operating on object-dtype ndarrays.
class_docstr_tok: ["String","Methods","operating","on","object-dtype","ndarrays","."]
code: def _str_removesuffix(self, suffix: str) -> Series:
      if sys.version_info < (3, 9):
          # NOTE pyupgrade will remove this when we run it with --py39-plus
          # so don't remove the unnecessary `else` statement below
          from pandas.util._str_methods import removesuffix
  
          return self._str_map(
              functools.partial(removesuffix, suffix=suffix)
          )
      else:
          return self._str_map(lambda x: x.removesuffix(suffix))
  
imports: from __future__ import annotations
  import functools
  import re
  import sys
  import textwrap
  from typing import TYPE_CHECKING, Callable, Literal
  import unicodedata
  import numpy
  from pandas._libs import lib
  import pandas._libs.missing
  import pandas._libs.ops
  from pandas._typing import NpDtype, Scalar
  from pandas.core.dtypes.common import is_scalar
  from pandas.core.dtypes.missing import isna
  from pandas.core.strings.base import BaseStringArrayMethods
label_desc: Use image node_id 51 for calling the ObjectStringArrayMixin obj's underlying member method code with example usage: obj._str_removesuffix(suffix) and returns: self, self