DataFrame, GroupBy, wählen Sie einen aus

df.sort_values('date').groupby(['id', 'period', 'type']).first()
Fantastic Fish