Full Numpy Playlist - • Numpy For Data Science
Get - Python Numpy Commands Notes (Rs.25) - https://rzp.io/l/numpynotes
-----------------------------------------
!! Diagonal Function - Array !!
It is used to extract the diagonal elements of an array, or , used to construct a new diagonal array.
Syntax : np.diag(a, k)
Note :
If 'a' is a 2-D array, it extracts the diagonal elements.
If 'a' is a 1-D array, it constructs a 2-D array with elements of 'a' on diagonal.
By default, k is 0. Use k more than 0 for diagonals above the main diagonal. Use k less than 0 for diagonals below the main diagonal.
__________________________
ndim - to check the dimension of the array
shape - to check the shape of the array
size - to check the size of the array
------------------------------------------
Buy 'Data Analyst - Self Study Material' ( Rs.450 ) - https://rzp.io/l/dslstudymaterial
-------------------------------------------
Contact Mail Id : datasciencelovers@gmail.com
------------------------------------------
🇮🇳 DATA SCIENCE LOVERS 🧡💛💚
-------------------------------------------
You must check our projects videos :
Project 8 - • Project - 8 | Data Analysis with Python | ...
Project 7 - • Project - 7 | Data Analysis with Python | ...
Project 6 - • Project - 6 | Data Analysis with Python | ...
Project 5 - • Project - 5 | Data Analysis with Python | ...
Project 4 - • Project - 4 | Data Analysis with Python | ...
Project 3 - • Project - 3 | Data Analysis with Python | ...
Project 2 - • Project - 2 | Data Analysis with Python | ...
Project 1 - • Project - 1 | Data Analysis with Python | ...
--------------------------------------------
#python #numpy #numpytutorial
On this page of the site you can watch the video online Python Numpy Tutorial - 11 ... Diagonal Array Function || np.diag( ) with a duration of hours minute second in good quality, which was uploaded by the user Data Science Lovers 21 December 2022, share the link with friends and acquaintances, this video has already been watched 1,144 times on youtube and it was liked by 22 viewers. Enjoy your viewing!