To start with this Numpy tutorial, we you need to have the basic idea of python syntax. So, if you don’t have this prerequisite then go for Python tutorial first. Numpy stands for “Numerical Python” which is generally used with matplotlib (visualization library ) and scipy ( Scientific Python ) mainly for data science. Numpy’s main object is the homogeneous multidimensional array. It is a table of elements (usually numbers), all of the same type, indexed by a tuple of positive integers.
Numpy’s array class is called ndarray. It is also known by the alias array. Note that Numpy.array is not the same as the Standard Python Library class array. array, which only handles one-dimensional arrays and offers less functionality.
Numpy’s main object is the homogeneous multidimensional array which is called ndarray.
It is a table of elements (usually numbers), all of the same type, indexed by a tuple of positive integers. In Numpy dimensions are called axes. The number of axes is rank. The rank 1 array is like – [2,3,4], it is similar to a 1-D array in most of the programming languages. If you try to find out the dimensions of this Rank 1, The array then it will return (1,) which is not preferable for training the model. So We try to create this array like – [[1,2,3,]] which will result in better dimensions.