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