Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python NumPy Shape function example verifying the value of last dimension

# Welcome to softhunt.net
import numpy as npy
 
# creating an array of 6 dimension
# using ndim
arr = npy.array([6, 3, 5, 6, 12, 2], ndmin=7)
 
# printing array
print(arr)
 
# verifying the value of last dimension
print('shape of an array :', arr.shape)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #NumPy #Shape #function #verifying #dimension
ADD COMMENT
Topic
Name
1+5 =