Numpy Basic Slicing and Indexing | Numpy Slicing and Indexing | Python Numpy Tutorial

preview_player
Показать описание
NumPy or Numeric Python is a package for computation on homogenous n-dimensional arrays. In numpy dimensions are called as axes.

A question arises that why do we need NumPy when python lists are already there. The answer to it is we cannot perform operations on all the elements of two list directly. For example we cannot multiply two lists directly we will have to do it element wise. This is where the role of NumPy comes into play.

Indexing can be done in numpy by using an array as an index. In case of slice, a view or shallow copy of the array is returned but in index array a copy of the original array is returned. Numpy arrays can be indexed with other arrays or any other sequence with the exception of tuples. The last element is indexed by -1 second last by -2 and so on.

#numpy #pythonnumpy #pythontutorial #learnpython #arrayattributes #array
******************************************************************
Did you enjoy the video? If so, give it a like above!

Subscribe to our channel for more techie video
Keep Learning!! Keep Growing!!

P.S. Make sure to keep up with us by clicking the bell!
Рекомендации по теме
Комментарии
Автор

Best video I am ever watching. Thanks for sharing

neelpaul