recarray.resize()

numpy.recarray.resize

recarray.resize(new_shape, refcheck=True)

Change shape and size of array in-place.

Parameters:

new_shape : tuple of ints, or n ints

Shape of resized array.

refcheck : bool, optional

If False, reference count will not be checked. Default is True.

Returns:

None

Raises:

ValueError

If a does not own its own data