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

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

BJK Computer science

55 лет назад

220 Просмотров

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. https://www.instagram.com/jagadeeshkumarbalaga

Тэги:

#numpy_in_python #scipy_python_tutorial #learn_numpy_in_one_video #basics #linear_algebra #eigenvalues #Vector #matrix #Tensor #jagadeesh_kumar_bala #numerical_python #lists_in_python #python_programming #code #array_method #linear_regression_machine_learning #machine_learning_tutorial #data_science_course #data_science_basics_for_beginners #statistics #covariance_and_correlation #determinants_class_12 #information_practices_class_12 #numpy #python #numpy_tutorial
Ссылки и html тэги не поддерживаются


Комментарии: