pandas.core.groupby.GroupBy.last

GroupBy.last(self, **kwargs)[source]

Compute last of group values.

Returns
Series or DataFrame

Computed last of values within each group.