IArray.resize(newshape, start=None)#

Change the shape of the array by growing or shrinking one or more dimensions.

  • newshape (tuple or list) – The new shape of the array container. It should have the same dimensions as self.

  • start (tuple, list or None, optional.) – The position from where the array will be extended or shrunk according to newshape. If given, it should have the same dimensions as self. If None (the default), the appended or deleted chunks will happen at the end of the array.


The array values corresponding to the added positions are not initialized. Thus, the user is in charge of initializing them. Furthermore, the start has to fulfill the same conditions than in insert(), append() and delete().

See also

insert, append, delete