Python Numpy Statistics Functions In Sql