The NumPy mean and average functions are used to calculate the arithmetic mean across the flattened array or a specified axis. These two functions are equivalent except the average function takes an optional weight argument which is not available in the mean function.