Vigyata.AI
Is this your channel?

Python Numpy Tutorial - 11 ... Diagonal Array Function || np.diag( )

1.1K views· 22 likes· 10:39· Dec 21, 2022

🛍️ Products Mentioned (2)

Full Numpy Playlist - https://www.youtube.com/playlist?list=PLy3lFw0OTluv2B7VgreJWX72r6OXwkxQe 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 - https://youtu.be/b7Kd0fLwgO4 Project 7 - https://youtu.be/AO5uhxa1R84 Project 6 - https://youtu.be/e1zKFSrKeLs Project 5 - https://youtu.be/q-Omt6LgRLc Project 4 - https://youtu.be/89eYAAPyRfo Project 3 - https://youtu.be/GyUbo45mVSE Project 2 - https://www.youtube.com/watch?v=fhiUl7f5DnI Project 1 - https://youtu.be/4hYOkHijtNw -------------------------------------------- #python #numpy #numpytutorial

🎬 More from DATA SCIENCE LOVERS