bundles / numpy 2.4.3 / numpy / ma / core / concatenate
staticmethod
numpy.ma.core:concatenate
source: /numpy/ma/core.py :7297
Signature
staticmethod
def concatenate ( arrays , axis = 0 ) Summary
Concatenate a sequence of arrays along the given axis.
Parameters
arrays: sequence of array_likeThe arrays must have the same shape, except in the dimension corresponding to
axis(the first, by default).axis: int, optionalThe axis along which the arrays will be joined. Default is 0.
Returns
result: MaskedArrayThe concatenated array with any masked entries preserved.
Examples
import numpy as np import numpy.ma as ma a = ma.arange(3) a[1] = ma.masked b = ma.arange(2, 5) a b ma.concatenate([a, b])
See also
- numpy.concatenate
Equivalent function in the top-level NumPy module.
Aliases
-
numpy.ma.concatenate -
numpy.ma.extras.MAxisConcatenator.concatenate