docs: def register_series_method(method):
      """Register a function as a method attached to the Pandas Series.
      """
      def inner(*args, **kwargs):
  
          class AccessorMethod(object):
              __doc__ = method.__doc__
  
              def __init__(self, pandas_obj):
                  self._obj = pandas_obj
  
              @wraps(method)
              def __call__(self, *args, **kwargs):
                  return method(self._obj, *args, **kwargs)
  
          register_series_accessor(method.__name__)(AccessorMethod)
  
          return method
  
      return inner()