DataFrame, Groupby, выберите один

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