def __init__(self, obj, **kwargs): if not checks.is_pandas(obj): # parent accessor obj = obj._obj checks.assert_dtype(obj, np.bool) GenericAccessor.__init__(self, obj, **kwargs)
def __init__(self, obj: tp.SeriesFrame, **kwargs) -> None: if not checks.is_pandas(obj): # parent accessor obj = obj._obj checks.assert_dtype(obj, np.bool_) GenericAccessor.__init__(self, obj, **kwargs)
def __init__(self, obj, year_freq=None, **kwargs): if not checks.is_pandas(obj): # parent accessor obj = obj._obj GenericAccessor.__init__(self, obj, **kwargs) # Set year frequency self._year_freq = year_freq
def __init__(self, obj: tp.SeriesFrame, year_freq: tp.Optional[tp.FrequencyLike] = None, **kwargs) -> None: if not checks.is_pandas(obj): # parent accessor obj = obj._obj GenericAccessor.__init__(self, obj, **kwargs) # Set year frequency self._year_freq = year_freq