0% found this document useful (0 votes)
26 views1 page

Ex 2

The document provides an overview of the characteristics of a NumPy array, including its type, dimensions, shape, size, and data type. It demonstrates the creation of a 2D array and prints relevant properties of the array. The code showcases basic functionalities of the NumPy library for array manipulation.

Uploaded by

vishnupriyapacet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views1 page

Ex 2

The document provides an overview of the characteristics of a NumPy array, including its type, dimensions, shape, size, and data type. It demonstrates the creation of a 2D array and prints relevant properties of the array. The code showcases basic functionalities of the NumPy library for array manipulation.

Uploaded by

vishnupriyapacet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

#characteristics of numpy array

import numpy as np
#create an array object
arr=[Link]([[1,2,3],[4,2,5,]])
#printing type of aeeay object
print('array is of type:',type(arr))
#printing type of aeeay dimension
print('no dimension "',[Link])
#shape of the array
print('shape of array is :',[Link])
#print the size of the array
print('the size is',[Link])
#data type of the array
print('the data type is',[Link])

You might also like