Closed
Description
Ref: #48980 (review)
Similar to #48400 with groupby, we should define methods on the Resampler
class rather than setting them as attributes after the class definition. While this involves a little more boilerplate code, it is more straightforward to understand and easier to enhance or extend.