pandas.core.groupby.GroupBy.firstΒΆ

GroupBy.first(self, **kwargs)[source]ΒΆ

Compute first of group values.

Returns
Series or DataFrame

Computed first of values within each group.