concatenate
Join a sequence of arrays along an existing axis.The arrays must have the same shape, except in the dimension corresponding to
axis (the first, by default).The axis along which the arrays will be joined. If axis is None, arrays are flattened before use.
If provided, the destination to place the result. The shape must be correct, matching that of what concatenate would have returned if no out argument were specified.
If provided, the destination array will have this dtype. Cannot be provided together with
out.Controls what kind of data casting may occur.
ndarray - The concatenated array.
Examples
See Also
stack- Join arrays along a new axisvstack- Stack arrays vertically (row-wise)hstack- Stack arrays horizontally (column-wise)
stack
Join a sequence of arrays along a new axis.Each array must have the same shape.
The axis in the result array along which the input arrays are stacked.
If provided, the destination to place the result. The shape must be correct, matching that of what stack would have returned.
If provided, the destination array will have this dtype. Cannot be provided together with
out.Controls what kind of data casting may occur.
ndarray - The stacked array has one more dimension than the input arrays.
Examples
See Also
concatenate- Join arrays along an existing axisvstack,hstack,dstack- Stack arrays in specific directions
vstack
Stack arrays in sequence vertically (row wise).The arrays must have the same shape along all but the first axis. 1-D arrays must have the same length.
If provided, the destination array will have this dtype.
Controls what kind of data casting may occur.
ndarray - The array formed by stacking the given arrays, will be at least 2-D.
Examples
See Also
concatenate- Join arrays along an existing axisstack- Join arrays along a new axishstack- Stack arrays horizontallydstack- Stack arrays depth-wise
hstack
Stack arrays in sequence horizontally (column wise).The arrays must have the same shape along all but the second axis, except 1-D arrays which can be any length.
If provided, the destination array will have this dtype.
Controls what kind of data casting may occur.
ndarray - The array formed by stacking the given arrays.
Examples
See Also
concatenate- Join arrays along an existing axisstack- Join arrays along a new axisvstack- Stack arrays verticallydstack- Stack arrays depth-wise
dstack
Stack arrays in sequence depth wise (along third axis).The arrays must have the same shape along all but the third axis. 1-D or 2-D arrays must have the same shape.
ndarray - The array formed by stacking the given arrays, will be at least 3-D.
Examples
See Also
concatenate- Join arrays along an existing axisstack- Join arrays along a new axisvstack- Stack arrays verticallyhstack- Stack arrays horizontally
column_stack
Stack 1-D arrays as columns into a 2-D array.Arrays to stack. All of them must have the same first dimension.
ndarray - The 2-D array formed by stacking the given arrays.
Examples
See Also
hstack- Stack arrays horizontallyvstack- Stack arrays verticallyconcatenate- Join arrays along an existing axis
row_stack
Stack arrays in sequence vertically (row wise).vstack. It is provided for consistency with column_stack.
See Also
vstack- Equivalent functioncolumn_stack- Stack 1-D arrays as columns
