Python Numpy Aggregate Functions In Dbms