NumPy Arrays
Learn about NumPy and NumPy arrays.
We'll cover the following
NumPy
NumPy is a fundamental package for scientific computing, so it’s essential to have an excellent understanding of this powerful library. It provides foundational tools for mathematical, scientific, engineering, and data science programming within the Python ecosystem. NumPy is useful because:
- It’s a linear algebra library.
- It’s powerful and incredibly fast.
- It integrates C/C++ and Fortran code. In this lesson, we’ll cover the key concepts of NumPy, which we’ll frequently use in this course. Let’s start with NumPy arrays, along with some important built-in methods and attributes that are related to these arrays.
Note: For complete documentation of NumPy and to explore more on NumPy, visit its official website.
The main object in NumPy is a homogeneous multidimensional array. It serves as a building block of most of the PyData ecosystem libraries. Once we’ve installed NumPy, we need to import it. Let’s import numpy
and check its version in the code below:
Get hands-on with 1400+ tech skills courses.