Creation of Array and Filler Arrays

Learn about the creation of array and filler arrays in Python.

NumPy stands for Numerical Python. It is a popular library used for solving problems in science and engineering. It provides a high-performance multidimensional array object and methods for fast operations on arrays. These operations include mathematical, logical, shape manipulation, sorting, selecting, IO, statistical operations, etc.

Creation of the array

Though the NumPy array looks like Python lists, it is optimized to run faster than lists. Unlike lists, all elements of a NumPy array are of the same type.

To create a NumPy array, we have to use the np.array() function and pass a list of numbers to it, as shown below:

Get hands-on with 1200+ tech skills courses.