class_docstr: Vectorized string functions for Series and Index.
  NAs stay NA unless handled otherwise by a particular method.
  Patterned after Python's string methods, with some inspiration from
  R's stringr package.
  Examples
  --------
  >>> import mars.dataframe as md
  >>> s = md.Series(["A_Str_Series"])
  >>> s.execute()
  0    A_Str_Series
  dtype: object
  >>> s.str.split("_").execute()
  0    [A, Str, Series]
  dtype: object
  >>> s.str.replace("_", "").execute()
  0    AStrSeries
  dtype: object
class_docstr_tok: ["Vectorized","string","functions","for","Series","and","Index",".","NAs","stay","NA","unless","handled","otherwise","by","a","particular","method",".","Patterned","after","Python","'s","string","methods",",","with","some","inspiration","from","R","'s","stringr","package",".","Examples","--","--","--","--",">",">",">","import","mars.dataframe","as","md",">",">",">","s","=","md.Series","(","[","``","A_Str_Series","''","]",")",">",">",">","s.execute","(",")","0","A_Str_Series","dtype",":","object",">",">",">","s.str.split","(","``","_","''",")",".execute","(",")","0","[","A",",","Str",",","Series","]","dtype",":","object",">",">",">","s.str.replace","(","``","_","''",",","``","''",")",".execute","(",")","0","AStrSeries","dtype",":","object"]
code: def _gen_func(cls, method):
      @wraps(getattr(pd.Series.str, method))
      def _inner(self, *args, **kwargs):
          op = SeriesStringMethod(
              method=method, method_args=args, method_kwargs=kwargs
          )
          return op(self._series)
  
      _inner.__doc__ = adapt_mars_docstring(
          getattr(pd.Series.str, method).__doc__
      )
      return _inner
  
imports: from functools import wraps
  from typing import Iterable
  import pandas
  from pandas.api.types import is_datetime64_dtype, is_datetime64tz_dtype, is_timedelta64_dtype, is_period_dtype
  from ...utils import adapt_mars_docstring
  from .string_ import _string_method_to_handlers, SeriesStringMethod
  from .datetimes import _datetime_method_to_handlers, SeriesDatetimeMethod
label_desc: Use image node_id 2 for calling the StringAccessor obj's underlying member method code with example usage: obj._gen_func(cls, method) and returns: _inner, op