NumPy
Numerical Computations
import numpy as np
revenue = np.array([1000, 1200, 900, 1500])
avg_revenue = np.mean(revenue) # Calculate average revenue
print(avg_revenue)Table: NumPy Functions
Syntax references for NumPy functions are as below:
Last updated