| [ Web Proxy ] |
| Viewing: https://numpy.org/doc/stable/reference/generated/numpy.column_stack.html#numpy.column_stack | [Back] [Original] |
Stack 1-D arrays as columns into a 2-D array.
Take a sequence of 1-D arrays and stack them as columns
to make a single 2-D array. 2-D arrays are stacked as-is,
just like with hstack. 1-D arrays are turned into 2-D columns
first.
Arrays to stack. All of them must have the same first dimension.
The array formed by stacking the given arrays.
See also
Examples
>>> import numpy as np
>>> a = np.array((1,2,3))
>>> b = np.array((4,5,6))
>>> np.column_stack((a,b))
array([[1, 4],
[2, 5],
[3, 6]])
| Web Proxy Viewer | New URL | Original Page |