root_numpy.stack

root_numpy.stack(recs, fields=None)

Stack common fields in multiple record arrays (concatenate them).

Parameters:

recs : list

List of NumPy record arrays

fields : list of strings, optional (default=None)

The list of fields to include in the stacked array. If None, then include the fields in common to all the record arrays.

Returns:

rec : NumPy record array

The stacked array.