python numpy - ghdrako/doc_snipets GitHub Wiki

ndarray

is a multidimensional, homogeneous array with a predetermined number of items. All the items in it are of the same type and the same size. Data type is specified by another NumPy object called dtype

The number of the dimensions and items in an array is defined by its shape, a tuple of N-positive integers that specifies the size for each dimension. The dimensions are defined as axes and the number of axes as rank.

NumPy arrays is that their size is fixed, that is, once you define their size at the time of creation, it remains unchanged.

Create an Array

array() function, in addition to lists, can accept tuples and sequences of tuples. It can also accept sequences of tuples and interconnected lists.

Types of Data