saving . . . saved Doubt in shape object has been deleted. Doubt in shape object has been hidden .
Doubt in shape object
Title
Question
When I am reshaping the array ar as :ar.reshape(4,2) ,I am getting an array of 4 rows and 2 columns .However, when I am finding shape of ar using: ar.shape , output is coming (2,4). Why is (4,2) not shown even after reshaping the array?

Python-3.4.3 Getting-started-with-arrays 04-05 min 20-30 sec 06-06-23, 9:42 p.m. stutisamanta04@gmail.com

Answers:

'ar' is the name of the object has to be used along with shape function.  try br = ar.reshape(4,2). Kindly reply.
25-07-23, 3:08 p.m. Spokenuser


Log-in to answer to this question.