Skip to content

Instantly share code, notes, and snippets.

@megha444

megha444/num.py

Created Oct 13, 2020
Embed
What would you like to do?
import numpy as np
#Array object creation
num_array = np.array( [[3,2,1],
[7,1,5]] )
# Printing array object type
print("Array type is: ", type(num_array))
#Array dimensions
print("Number of dimensions: ", num_array.ndim)
# Shape of array
print("Shape of array: ", num_array.shape)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment