原文:https://docs.scipy.org/doc/numpy/reference/generated/numpy.ma.concatenate.html
校对:(虚位以待)
numpy.ma.
concatenate
(arrays, axis=0)[source]沿给定轴连接数组的序列。
参数: | 数组:array_like的序列
axis:int,可选
|
---|---|
返回: | result:MaskedArray
|
也可以看看
numpy.concatenate
例子
>>> 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)
>>> b
masked_array(data = [2 3 4],
mask = False,
fill_value = 999999)
>>> ma.concatenate([a, b])
masked_array(data = [0 -- 2 2 3 4],
mask = [False True False False False False],
fill_value = 999999)