Python Numpy

Python Numpy


Introduction to Numpy        


  • NumPy is a Python library used for working with arrays.
  • It is an open source project and you can use it freely.
  • NumPy stands for Numerical Python.
  • It also has functions for working in domain of linear algebra, Fourier transform and matrices.

HISTORY

  • Numeric, the ancestor of NumPy, was developed by Jim Hugunin.
  • Another package Numarray was also developed, having some additional functionalities.
  • • In 2005, Travis Oliphant created NumPy package by incorporating the features of Numarray into Numeric package

Create Numpy Arrays

  1. NumPy is used to work with arrays. The array object in NumPy is called ndarray.
  2. We can create a NumPy ndarray object by using the array function

Example

#Creating Numpy Array import numpy as np a = np.array([1, 2, 3, 4, 5])

print(a)

Output:

[1 2 3 4 5]

To view or add a comment, sign in

More articles by Vigneshwaran s

Insights from the community

Others also viewed

Explore topics