Postgresql Group By Concatenate Python Dataframes