A Soft Introduction to Numpy Arrays- Part 2: Slicing & Arithmetic Operations
This article can be considered a continuation of part 1.
Slicing of Numpy Arrays:
Slicing in NumPy works similarly to slicing in Python’s built-in lists, but has some additional features that can be useful. The general syntax for slicing a NumPy array is a[start:stop:step, start:stop:step, ...]
, where a
is…