Python Numpy Tutorial - 10 ... Ones Like * Zeros Like * Full Like || Arrays

Опубликовано: 01 Октябрь 2024
на канале: Data Science Lovers
247
9

Full Numpy Playlist -    • Numpy For Data Science  

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

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

!! Ones Like Array !!

It returns an array of Ones, with the same shape & type as of the given array.
Syntax : np.ones_like(array, dtype)

!! Zeros Like Array !!
It returns an array of Zeros, with the same shape & type as of the given array.
Syntax : np.zeros_like(array, dtype)

!! Full Like Array !!
It returns a full array of Constant element, with the same shape & type as of the given array.
Syntax : np.full_like(array, fill_value, dtype)

__________________________

* 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 : [email protected]
------------------------------------------
🇮🇳 DATA SCIENCE LOVERS 🧡💛💚

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

You must check our projects videos :

Project 8 -    • Project - 8 | Data Analysis with Pyth...  
Project 7 -    • Project - 7 | Data Analysis with Pyth...  
Project 6 -    • Project - 6 | Data Analysis with Pyth...  
Project 5 -    • Project - 5 | Data Analysis with Pyth...  
Project 4 -    • Project - 4 | Data Analysis with Pyth...  
Project 3 -    • Project - 3 | Data Analysis with Pyth...  
Project 2 -    • Project - 2 | Data Analysis with Pyth...  
Project 1 -    • Project - 1 | Data Analysis with Pyth...  

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

#python #numpy #numpytutorial