pandas: how do I select first row in each GROUP BY group?,"df.sort('A', inplace=True)"