Numpy Concepts: Difference between revisions
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
=<tt>ndarray</tt>= | =<tt>ndarray</tt>= | ||
Used to implement a Pandas [[Pandas_Series#Overview|Series]]. | Used to implement a Pandas [[Pandas_Series#Overview|Series]]. | ||
=Import Convention= | |||
<syntaxhighlight lang='py'> | |||
import numpy as np | |||
</syntaxhighlight> |
Revision as of 00:01, 15 May 2024
External
Internal
Overview
NumPy is the short for Numerical Python. It provides data structures, algorithms and library glue needed for most scientific applications involving numerical data in Python. NumPy contains:
- A fast and efficient multidimensional array object
ndarray
. For numerical data, NumPy arrays are more efficient for storing and manipulating data than other built-in Python data structures. - Functions for performing element-wise computations with arrays, and mathematical operations between arrays.
- Tools for reading and writing array-based datasets to disk.
- Linear algebra operations, Fourier transform, random number generation.
- A mature C API to enable Python extensions and native C or C++ code to access NumPy's data structures.
One of NumPy's primary uses is as a container for data to be passed between algorithms and libraries. NumPy is a dependency for Pandas.
ndarray
Used to implement a Pandas Series.
Import Convention
import numpy as np