Learn practical skills, build real-world projects, and advance your career

NUMPY Function

What is Numpy??

NumPy is the fundamental package for scientific computing in Python. It is a Python library that provides a multidimensional array object, various derived objects (such as masked arrays and matrices), and an assortment of routines for fast operations on arrays, including mathematical, logical, shape manipulation, sorting, selecting, I/O, discrete Fourier transforms, basic linear algebra, basic statistical operations, random simulation and much more.
The most important object defined in NumPy is an N-dimensional array type called ndarray. It describes the collection of items of the same type.

  • function 1=numpy.array :It creates an ndarray from any object exposing array interface, or from any method that returns an array.
  • function 2=Data Type Objects (dtype) & shape :A data type object describes interpretation of fixed block of memory corresponding to an array.With the help of shape,we can find out type of matrix.
  • function 3 : arange/reshape : With the help of this funtion we can make array 1D.arange is like range funtion & reshape help to convert it into 2D & 3D.
  • function 4:save/load : this funtion is for storing & loading it into file
  • function 5: Add: can use to add 2 array

The recommended way to run this notebook is to click the "Run" button at the top of this page, and select "Run on Binder". This will run the notebook on mybinder.org, a free online service for running Jupyter notebooks.

!pip install jovian --upgrade -q
import jovian
jovian.commit(project='numpy-array-operations arun')
[jovian] Creating a new project "arun-mishra-nokia/numpy-array-operations arun" [jovian] Committed successfully! https://jovian.ai/arun-mishra-nokia/numpy-array-operations-arun

Let's begin by importing Numpy and listing out the functions covered in this notebook.