16. What is the base attribute of ndarray(Numpy)? (ndarray.base)

preview_player
Показать описание
In this Numpy tutorial video, we are going to discuss:

attribute

1. Base attribute to check if an array owns it's data or not.
2. Base object if memory is from some other object.
3. The base of an array that owns its memory is None.
4. Slicing creates a view, whose memory is shared with x.

The copy owns the data and any changes made to the copy will not affect the original array, and any changes made to the original array will not affect the copy.

The view does not own the data and any changes made to the view will affect the original array, and any changes made to the original array will affect the view.

If you enjoy these tutorials, like the video, and give it a thumbs up and also share these videos with your friends and families if you think these videos would help him.
Please consider clicking the SUBSCRIBE button to be notified of future videos.

Thank you.
Рекомендации по теме
visit shbcf.ru