📖 INDEX
LOADING ENGINE...
np.percentile()
AI & DATA SCIENCE // np-percentile
Computes the q-th percentile of the data along the specified axis.
Syntax
p50 = np.percentile(arr, 50)Examples
Example 01Basic Usage
p50 = np.percentile(arr, 50)Best Practices
- Refer to the official NumPy documentation for deep vectorization techniques.
- Avoid writing custom Python for-loops for operations that can be vectorized with NumPy.