Python Numpy Tutorial - 8 ... Eye Array Function || np.eye( )

Published: 10 December 2022
on channel: Data Science Lovers
600
15

Full Numpy Playlist -    • Numpy For Data Science  

Get - Python Numpy Commands Notes (Rs.25) - https://rzp.io/l/numpynotes

-----------------------------------------

!! Eye Array Function !!

The Eye Function returns a 2-D array , with 1 on diagonal and 0 eleswhere.

Syntax : np.eye(shape, k, dtype)

Here, if only No. of Rows is passed, then No. of Columns = No. of Rows.
K is Index of diagonal, by default, k=0 means Main diagonal ; when k=positive means Upper diagonal ; when k=negative means Lower diagonal.
The default datatype is float.

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
------------------------------------------------
Python Pandas Notes ( Rs.99 ) - https://rzp.io/l/pandas-notes
-------------------------------------------
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 | ...  

--------------------------------------------

Numpy Playlist -    • Numpy For Data Science  


#python #dataanalytics #numpy


On this page of the site you can watch the video online Python Numpy Tutorial - 8 ... Eye Array Function || np.eye( ) with a duration of hours minute second in good quality, which was uploaded by the user Data Science Lovers 10 December 2022, share the link with friends and acquaintances, this video has already been watched 600 times on youtube and it was liked by 15 viewers. Enjoy your viewing!