The hstack() function is used to create a single array by horizontally stacking the input arrays in a particular order (i.e., column wise). Numpy syntax. hstack(tup) Parameters: tup : [sequence of ndarrays] arrays to be stacked in a tuple. With the exception of the second axis, all of the arrays must be the same shape.
