xarray.core.groupby.DatasetGroupBy.last

DatasetGroupBy.last(skipna=None, keep_attrs=True)

Return the last element of each group along the group dimension