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