what is a NumPy array in Python?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our W3Make Forum to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
NumPy stands for numeric Python is a library used for working with arrays. In Python list only stores 1-D array while numpy can store n-dimensional arrays therefore it is very efficient. It only deals with numeric data type.
import numpy as np
ar=np.array([[25,26,27],[12,13,14]])
print(ar)
output:-
[[25,26,27]
[12,13,14]]
A core data structure in the NumPy library—Numerical Python—is a NumPy array. It is a multidimensional container for homogenous data that makes huge arrays of numerical data easy to use and compute in Python.