Analysing and manipulating pandas dataframe - BrilliantBits