def addrecords(X, new):
if isinstance(new, np.record) or isinstance(new, np.void) orisinstance(new, tuple):<EOL><INDENT>new = [new]<EOL><DEDENT>return np.append(X, utils.fromrecords(new, type=np.ndarray,<EOL>dtype=X.dtype), axis=<NUM_LIT:0>)<EOL>
Append one or more records to the end of a numpy recarray or ndarray .

Can take a single record, void or tuple, or a list of records, voids or 
tuples.

Implemented by the tabarray method 
:func:`tabular.tab.tabarray.addrecords`.

**Parameters**

        **X** :  numpy ndarray with structured dtype or recarray

                The array to add records to.

        **new** :  record, void or tuple, or list of them

                Record(s) to add to `X`.

**Returns**

        **out** :  numpy ndarray with structured dtype

                New numpy array made up of `X` plus the new records.

**See also:**  :func:`tabular.spreadsheet.rowstack`