class_docstr: String Methods operating on object-dtype ndarrays.
class_docstr_tok: ["String","Methods","operating","on","object-dtype","ndarrays","."]
code: def _str_slice_replace(self, start=None, stop=None, repl=None):
      if repl is None:
          repl = ""
  
      def f(x):
          if x[start:stop] == "":
              local_stop = start
          else:
              local_stop = stop
          y = ""
          if start is not None:
              y += x[:start]
          y += repl
          if stop is not None:
              y += x[local_stop:]
          return y
  
      return self._str_map(f)
  
imports: from __future__ import annotations
  import functools
  import re
  import textwrap
  from typing import TYPE_CHECKING, Callable, Literal, cast
  import unicodedata
  import numpy
  from pandas._libs import lib
  import pandas._libs.missing
  import pandas._libs.ops
  from pandas.core.dtypes.missing import isna
  from pandas.core.strings.base import BaseStringArrayMethods
label_desc: Use image node_id 25 for calling the ObjectStringArrayMixin obj's underlying member method code with example usage: obj._str_slice_replace(start, stop, repl) and returns: self, y