Pandas dataframe get first row of each group,df.groupby('id').first()