SciPy - Statistical Functions (scipy.stats) Basics
You have a 2D NumPy array representing exam scores of 3 students in 4 subjects:
What does
import numpy as np from scipy.stats import describe scores = np.array([[80, 90, 70, 85], [75, 85, 80, 90], [90, 95, 85, 100]]) stats = describe(scores, axis=1) print(stats.mean)
What does
stats.mean represent here?