Created
October 13, 2020 12:22
-
-
Save megha444/1b5f2a3f4531df4b046f7c9c6949decb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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