Csv To Python Dataframe Group By Example In Sql