def __init__(self, obj: tp.Series, year_freq: tp.Optional[tp.FrequencyLike] = None, **kwargs) -> None: if not checks.is_pandas(obj): # parent accessor obj = obj._obj GenericSRAccessor.__init__(self, obj, **kwargs) ReturnsAccessor.__init__(self, obj, year_freq=year_freq, **kwargs)
def __init__(self, obj, **kwargs): if not checks.is_pandas(obj): # parent accessor obj = obj._obj GenericSRAccessor.__init__(self, obj, **kwargs) SignalsAccessor.__init__(self, obj, **kwargs)
def __init__(self, obj, year_freq=None, **kwargs): if not checks.is_pandas(obj): # parent accessor obj = obj._obj GenericSRAccessor.__init__(self, obj, **kwargs) ReturnsAccessor.__init__(self, obj, year_freq=year_freq, **kwargs)
def __init__(self, obj, **kwargs): self._obj = obj DirNamesMixin.__init__(self) GenericSRAccessor.__init__(self, obj, **kwargs)
def __init__(self, obj: tp.Series, **kwargs) -> None: self._obj = obj DirNamesMixin.__init__(self) GenericSRAccessor.__init__(self, obj, **kwargs)