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.

Scroll To Top