Curriculum
Course: Mastering NumPy
Login
Text lesson

NumPy Overview

In this lesson, you will learn.

  • What is NumPy
  • Why use NumPy?
  • Installing NumPy
  • How to import NumPy

 

What is NumPy

  • NumPy stands for Numerical Python.
  • NumPy is a Python package for scientific computation and processing of multidimensional and single-dimensional array elements.
  • NumPy Python library offers a multidimensional array of objects, derived objects, and routines for fast operations on arrays, including mathematical, logical, shape manipulation, sorting, selecting I/O, and statistical operations.
  • Travis Oliphant created the NumPy package in 2005.

 

Why use NumPy?

  • NumPy arrays are faster and more compact than Python lists.
  • NumPy uses less memory to store data, is convenient, and provides a mechanism for specifying the data types.

 

Installing NumPy

If you already have Python, you can install NumPy with

conda install numpy

Or

pip install numpy

 

How to import NumPy

To access NumPy and its functions, import it in your Python code like this:

import numpy as np

We shorten the imported name to np for better readability of code using NumPy.

 

 


End of the lesson….enjoy learning

 

 

Student Ratings and Reviews

 

5.0
5.0 out of 5 stars (based on 1 review)
Excellent
Very good
Average
Poor
Terrible

 

 

8 August 2024

short and fine

Gautam Singh Jyala

 

 

Submit a Review