Python Numpy Aggregate Functions Excel