NumPy ndarray

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

ndarray is an N-dimensional array object. It is a fast, flexible container for large datasets in Python. It is used to implement a Pandas Series. It allows performing mathematical operations on whole blocks of data using similar syntax to the equivalent operation between scalar elements. ndarrays are homogeneous, all elements of an ndarray instance have the same data type. ndarrays can be created by converting Python data structures, using generators, or initializing blocks of memory of specified shape with specified values.

ndarray Creation

Convert Python Data Structures

With Generators

By Specifying Shape and Value

Element Data Type