Numpy Array Manipulation
Let's cover more about Numpy arrays.
We'll cover the following
Numpy array manipulation operations
np.array_split
It is used to split a Numpy array into multiple sub-arrays.
np.column_stack
It is used to stack multiple 1-D Numpy arrays as columns in a 2-D array.
np.concatenate
It is used to concatenate numpy arrays along an axis. There’s more on this in the coding snippet below.
np.hsplit
It splits a single Numpy array into multiple sub-arrays horizontally.
np.hstack
It stacks the arrays horizontally in a column-wise manner.
np.squeeze
It removes single-dimensional entries from the shape of an array.
np.vsplit
It splits an array into multiple sub-arrays vertically (row-wise).
np.vstack
It stacks multiple arrays in a vertical sequence.
Coding Exercise
Get hands-on with 1400+ tech skills courses.