NumPy can also perform common statistical calculations.
- sum()
- average()
- mean()
- std()
- Sum
np.sum() calculates the total.
Output:
- Average
np.average() calculates the average.
Output:
- Mean
np.mean() calculates the arithmetic mean.
Output:
- Standard Deviation
np.std() calculates the standard deviation.
Output:




Top comments (0)