Postgres Aggregate Functions In Python With Examples