numpy 1.22.4 Pypi GitHub Homepage
Other Docs
ParametersReturns
concatenate(arrays, axis=0)

Parameters

arrays : sequence of array_like

The arrays must have the same shape, except in the dimension corresponding to :None:None:`axis` (the first, by default).

axis : int, optional

The axis along which the arrays will be joined. Default is 0.

Returns

result : MaskedArray

The concatenated array with any masked entries preserved.

Concatenate a sequence of arrays along the given axis.

See Also

numpy.concatenate

Equivalent function in the top-level NumPy module.

Examples

This example is valid syntax, but we were not able to check execution
>>> import numpy.ma as ma
... a = ma.arange(3)
... a[1] = ma.masked
... b = ma.arange(2, 5)
... a masked_array(data=[0, --, 2], mask=[False, True, False], fill_value=999999)
This example is valid syntax, but we were not able to check execution
>>> b
masked_array(data=[2, 3, 4],
             mask=False,
       fill_value=999999)
This example is valid syntax, but we were not able to check execution
>>> ma.concatenate([a, b])
masked_array(data=[0, --, 2, 2, 3, 4],
             mask=[False,  True, False, False, False, False],
       fill_value=999999)
See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /numpy/ma/core.py#6929
type: <class 'function'>
Commit: