arkouda.pdarraymanipulation

Functions

vstack(→ arkouda.pdarrayclass.pdarray)

Stack a sequence of arrays vertically (row-wise).

Module Contents

arkouda.pdarraymanipulation.vstack(tup: Tuple[arkouda.pdarrayclass.pdarray] | List[arkouda.pdarrayclass.pdarray], *, dtype: type | str | None = None, casting: Literal['no', 'equiv', 'safe', 'same_kind', 'unsafe'] = 'same_kind') arkouda.pdarrayclass.pdarray[source]

Stack a sequence of arrays vertically (row-wise).

This is equivalent to concatenation along the first axis after 1-D arrays of shape (N,) have been reshaped to (1,N).

Parameters:
  • tup (Tuple[pdarray]) – The arrays to be stacked

  • dtype (Optional[Union[type, str]], optional) – The data-type of the output array. If not provided, the output array will be determined using np.common_type on the input arrays Defaults to None

  • casting ({"no", "equiv", "safe", "same_kind", "unsafe"], optional) – Controls what kind of data casting may occur - currently unused

Returns:

  • pdarray – The stacked array