Python Numpy Aggregate Functions Postgresql Vs Oracle