MCPcopy Create free account
hub / github.com/dask/dask / ResampleAggregation

Class ResampleAggregation

dask/dataframe/tseries/resample.py:174–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172
173
174class ResampleAggregation(Blockwise):
175 _parameters = [
176 "frame",
177 "divisions_left",
178 "divisions_right",
179 "closed",
180 "rule",
181 "kwargs",
182 "how",
183 "fill_value",
184 "how_args",
185 "how_kwargs",
186 ]
187 operation = staticmethod(_resample_series)
188
189 @functools.cached_property
190 def _meta(self):
191 return self.frame._meta
192
193 def _divisions(self):
194 return list(self.divisions_left.iterable) + [self.divisions_right.iterable[-1]]
195
196 def _blockwise_arg(self, arg, i):
197 if isinstance(arg, BlockwiseDep):
198 return arg.iterable[i]
199 return super()._blockwise_arg(arg, i)
200
201
202class ResampleCount(ResampleReduction):

Callers 1

_lowerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected