Installation

Estimated reading: 1 minute 11 views

Before using NumPy, you need to install it. Open your terminal or command prompt and run:

pip install numpy

Getting Started

Importing NumPy

To use NumPy in your Python program, start by importing it:

import numpy as np

Now, you can use np as a shorthand for numpy in your code.

Share this Doc

Installation

Or copy link