Can anyone explain this? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can anyone explain this?

Import numpy as np ar=np.ones((3,2)) Print (ar.ndim) What is ndim ?!

17th May 2020, 9:45 PM
Jason
Jason - avatar
4 Answers
+ 4
Jason click https://code.sololearn.com/cJTNSH6EuBok/?ref=app And press RUN And be happy:)
17th May 2020, 9:50 PM
Petr
+ 1
n dimensions possibly ,you could always use Google :-)
17th May 2020, 9:48 PM
Abhay
Abhay - avatar
+ 1
ndim() function return the number of dimensions of an array. #codinglife #DoundouYagoul
18th May 2020, 3:39 AM
Matar Seck
Matar Seck - avatar
+ 1
Number of the dimension of array.
23rd Sep 2020, 7:07 AM
shafiq
shafiq - avatar