Python Numpy Aggregate Functions In Oracle