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

Показать описание
-----------------------------------------
!! Eye Array Function !!
The Eye Function returns a 2-D array , with 1 on diagonal and 0 eleswhere.
- 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
------------------------------------------
------------------------------------------------
-------------------------------------------
------------------------------------------
🇮🇳 DATA SCIENCE LOVERS 🧡💛💚
-------------------------------------------
You must check our projects videos :
--------------------------------------------
#python #dataanalytics #numpy