pandas: transforming the dataframegroupby object to desired format,"df.columns = ['code/colour', 'id:amount']"