Monday, 29 November 2021

Numpy In Python

Introduction to NumPy

•   NumPy is a Python package and it stands for numerical python
•   Fundamental package for numerical computations in Python
•   Supports N-dimensional array objects that can be used for processing multidimensional data
•   Supports different data-types


•   An array is a data structure that stores values of same data type
•   Lists can contain values corresponding to different data types,
•   Arrays in python can only contain values corresponding to same data type

NumPy Array

•   A numpy array is a grid of values, all of the same type, and is indexed by a tuple of 
nonnegative integers
•   The number of dimensions is the rank of the array
•   The shape of an array is a tuple of integers giving the size of the array along each dimension

Creation of array

To create numpy array, we first need to import the numpy package:

Some Operations on Numpy array

Join us:


Post a Comment

Codecademy Code Foundations

Popular Posts


Android (23) AngularJS (1) Assembly Language (2) Books (10) C (75) C# (12) C++ (81) Course (1) Data Strucures (4) Downloads (1) Engineering (13) flutter (1) FPL (17) Hadoop (1) HTML&CSS (38) IS (25) Java (89) Leet Code (4) Pandas (1) PHP (20) Projects (17) Python (376) R (69) Selenium Webdriver (2) Software (14) SQL (27)