cat#

cat(*args, copy=False, **kwargs)[source]#

Like numpy.concatenate(), but takes anything and returns an array. Useful for e.g. appending a single number onto the beginning or end of an array.

Parameters:

Examples:

arr = sc.cat(4, np.ones(3))
arr = sc.cat(np.array([1,2,3]), [4,5], 6)
arr = sc.cat(np.random.rand(2,4), np.random.rand(2,6), axis=1)
New in version 1.0.0.
New in version 1.1.0: “copy” and keyword arguments.
New in version 2.0.2: removed “copy” argument; changed default axis of 0; arguments passed to np.concatenate()