sum, mean, min, max and std
What it is
Reductions that take axis=, keepdims= and dtype=. Available both as methods (x.sum()) and functions (np.sum(x)); np.std uses a population divisor (ddof=0) by default.
Why it matters
They are the whole of descriptive statistics on an array, and ddof is a real difference: scikit-learn's scaler and np.std agree, while pandas.Series.std defaults to ddof=1 and does not.
In the real world: Average basket size, busiest day and how much daily sales vary: the core numbers in a weekly business review.
X.mean(axis=0) # per-feature mean
X.std(axis=0, ddof=0) # population std, as sklearn uses
X.max(axis=1, keepdims=True) # per-row max, shape (n, 1)
X.sum(dtype=np.float64) # accumulate wide even if X is float32Comparing a NumPy std with a Pandas one and concluding the data changed. The divisor differs: n versus n - 1.
Practise it: Accuracy From Model Scores