class_docstr: Base class for pandas Accessor objects cat, dt, and str.
  
  Notes
  -----
  Subclasses should define ``_accessor_name``, ``_accessor_methods``, and
  ``_accessor_properties``.
class_docstr_tok: ["Base","class","for","pandas","Accessor","objects","cat",",","dt",",","and","str",".","Notes","--","--","-","Subclasses","should","define","``","_accessor_name","``",",","``","_accessor_methods","``",",","and","``","_accessor_properties","``","."]
code: def __init__(self, series):
      from dask.dataframe.core import Series
  
      if not isinstance(series, Series):
          raise ValueError("Accessor cannot be initialized")
  
      series_meta = series._meta
      if hasattr(series_meta, "to_series"):  # is index-like
          series_meta = series_meta.to_series()
      meta = getattr(series_meta, self._accessor_name)
  
      self._meta = meta
      self._series = series
  
imports: from __future__ import annotations
  import warnings
  import numpy
  import pandas
  from dask.dataframe._compat import check_to_pydatetime_deprecation
  from dask.utils import derived_from
label_desc: Use image node_id 1 to create a new Accessor object  with example: obj = Accessor(series)