English

What is the name of the built-in array class in NumPy ?

Advertisements
Advertisements

Question

What is the name of the built-in array class in NumPy ?

Short Answer
Advertisements

Solution

The built-in array class in NumPy is called ndarray (N-dimensional array).

It is used to store and perform operations on elements of the same data type in one or more dimensions.

Example:

import numpy as np
a = np.array([10, 20, 30])
print(type(a))

Output:

<class 'numpy.ndarray'>

shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Introduction to NumPy - Exercise [Page 113]

APPEARS IN

NCERT Informatics Practices [English] Class 11
Chapter 6 Introduction to NumPy
Exercise | Q 2. c) | Page 113
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×