Postgres Concat Two Dataframe In Python Methods Vs Functions