arkouda.pdarraymanipulation¶
Functions¶
Module Contents¶
- arkouda.pdarraymanipulation.delete(arr: arkouda.pdarrayclass.pdarray, obj: arkouda.pdarrayclass.pdarray | slice | int, axis: int | None = None) arkouda.pdarrayclass.pdarray [source]¶
Return a copy of ‘arr’ with elements along the specified axis removed.
- Parameters:
arr (pdarray) – The array to remove elements from
obj (Union[pdarray, slice, int]) – The indices to remove from ‘arr’. If obj is a pdarray, it must have an integer dtype.
axis (Optional[int], optional) – The axis along which to remove elements. If None, the array will be flattened before removing elements. Defaults to None.
- Returns:
A copy of ‘arr’ with elements removed
- Return type:
- 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