English 中文(简体)
Python Data Science - Numpy
  • 时间:2024-12-22

Python Data Science - NumPy


Previous Page Next Page  

What is NumPy?

NumPy is a Python package which stands for Numerical Python . It is a pbrary consisting of multidimensional array objects and a collection of routines for processing of array.

Operations using NumPy

Using NumPy, a developer can perform the following operations −

    Mathematical and logical operations on arrays.

    Fourier transforms and routines for shape manipulation.

    Operations related to pnear algebra. NumPy has in-built functions for pnear algebra and random number generation.

NumPy – A Replacement for MatLab

NumPy is often used along with packages pke SciPy (Scientific Python) and Mat−plotpb (plotting pbrary). This combination is widely used as a replacement for MatLab, a popular platform for technical computing. However, Python alternative to MatLab is now seen as a more modern and complete programming language.

It is open source, which is an added advantage of NumPy.

ndarray Object

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. Items in the collection can be accessed using a zero-based index. Every item in an ndarray takes the same size of block in the memory. Each element in ndarray is an object of data-type object (called dtype). Any item extracted from ndarray object (by spcing) is represented by a Python object of one of array scalar types.

We will see lots of examples on using NumPy pbrary of python in Data science work in the next chapters.

Advertisements