sum, mean, std (with axis) (NumPy)

Aggregation functions like sum(), mean(), and std() reduce an array to summary values. With no axis they reduce the whole array to one number; with an axis…