Python pandas dataframe select two records for each value of a column using group by
python
dataframe