Skip to content

Latest commit

 

History

History
 
 

NumPy - Basics

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

NumPy

NumPy, which stands for Numerical Python, is a library consisting of multidimensional array objects and a collection of routines for processing those arrays. Using NumPy, mathematical and logical operations on arrays can be performed.

Why use NumPy?

In Python we have lists that serve the purpose of arrays, but they are slow to process.

NumPy aims to provide an array object that is up to 50x faster than traditional Python lists.

The array object in NumPy is called ndarray, it provides a lot of supporting functions that make working with ndarray very easy.

Arrays are very frequently used in data science, where speed and resources are very important.


Topics discussed in this notebook:

  • Importing NumPy
  • Creating arrays - both one-dimensional and multi-dimensional
  • Accessing/Changing elements, rows, columns, etc.
  • Inbuilt functions
  • Linear Algebra
  • Summary statistics

Contributed by :

Tanvi Bugdani LGM-SoC, 2021