For users
apply_ufunc
For developers/contributors
Community
DataArrayResample.
last
Return the last element of each group along the group dimension