HOW TO CREATE A ARRAY OF ANY DiMENSION IN PYTHON USING NUMPY LIBRARY

Published: 10 December 2020
on channel: BJK Computer science
257
1

This Video is a Discussion about Numpy Library in Python
we will learn how to create 2D array in Numpy


An ndarray is a multidimensional array of items of the same type and size. The number of dimensions and items in an array is defined by its shape, which is a tuple of N non-negative integers that specify the sizes of each dimension. The type of items in the array is specified by a separate data-type object (dtype), one of which is associated with each ndarray.

As with other container objects in Python, the contents of an ndarray can be accessed and modified by indexing or slicing the array (using, for example, N integers), and via the methods and attributes of the ndarray.

Different ndarrays can share the same data, so that changes made in one ndarray may be visible in another. That is, an ndarray can be a “view” to another ndarray, and the data it is referring to is taken care of by the “base” ndarray. ndarrays can also be views to memory owned by Python strings or objects implementing the buffer or array interfaces.




Tuple of array dimensions.

The shape property is usually used to get the current shape of an array, but may also be used to reshape the array in-place by assigning a tuple of array dimensions to it. As with numpy.reshape, one of the new shape dimensions can be -1, in which case its value is inferred from the size of the array and the remaining dimensions. Reshaping an array in-place will fail if a copy is required.   / jagadeeshkumarbalaga  


On this page of the site you can watch the video online HOW TO CREATE A ARRAY OF ANY DiMENSION IN PYTHON USING NUMPY LIBRARY with a duration of hours minute second in good quality, which was uploaded by the user BJK Computer science 10 December 2020, share the link with friends and acquaintances, this video has already been watched 257 times on youtube and it was liked by 1 viewers. Enjoy your viewing!