📖 INDEX
LOADING ENGINE...
np.delete()
AI & DATA SCIENCE // np-delete
Returns a new array with sub-arrays along an axis deleted.
Syntax
res = np.delete(arr, 1, axis=0)Examples
Example 01Basic Usage
res = np.delete(arr, 1, axis=0)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.