📖 INDEX
LOADING ENGINE...
np.max()
AI & DATA SCIENCE // np-max
Returns the maximum of an array or maximum along an axis.
Syntax
res = np.max(arr)Examples
Example 01Basic Usage
res = np.max(arr)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.