Skip to content

kavyasri-gaddipati/pythonassignment-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

numpy.shape() is usedto get complete structural shape of our 2D array Numpy.shape array have an attribute called shape that returns a tuple with each index having the number of corresponding elements Numpy.size() will give us how many elements are present in total Syntax: nump.size(are, axis = none) The term broadcasting refers to the ability of NumPy to treat are arrays of different shapes during arithmetic operations. Arithmetic operations on arrays usually done on corresponding elements. If two arrays are of exactly the same shape, then these operations are smoothly performed Example:-import numpy as np

a = np.array([1,2,3,4]) b = np.array([10,20,30,40]) c = a * b print c Top 5 Python Libraries And Packages For Numeric And Scientific Applications are 1) SciPy (Scientific Numeric Library) 2) Pandas (Data Analytics Library) 3) IPython (Command Shell) 4) Numeric Python (Fundamental Numeric Package) 5) Natural Language Toolkit (Library For Mathematical An d Text Analysis) NumPy introduces a simple file format for ndarray objects. This . npy file stores data, shape, dtype and other information required to reconstruct the ndarray in a disk file such that the array is correctly retrieved even if the file is on another machine with different architecture The empty() function is used to create a new array of given shape and type, without initializing entries Syntax:-numpy.empty(shape,dtype=float,order='c')

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published