def __init__(self, obj, rule, **kwargs):
        self.obj = obj
        rule = pd.datetools.to_offset(rule)
        day_nanos = pd.datetools.Day().nanos

        if getnanos(rule) and rule.nanos % day_nanos:
            raise NotImplementedError('Resampling frequency %s that does'
                                      ' not evenly divide a day is not '
                                      'implemented' % rule)
        self._rule = rule
        self._kwargs = kwargs
dataset/ETHPy150Open dask/dask/dask/dataframe/tseries/resample.py/Resampler.__init__/swapped operands of `%`