mask_fn (Callable[[ArrayDict], ndarray]) – A function that takes the unit ids and returns a mask to keep the units.
field (str) – The field to apply the filter.
reset_index (bool) – If True, it will reset_index the unit index of the time series.