Postgres Aggregate Functions In Pandas