Last answered:

15 Nov 2022

Posted on:

14 Nov 2022

0

How to know total number

Please  how can one know the number of total array when it is not written?

1 answers ( 0 marked as helpful)
Instructor
Posted on:

15 Nov 2022

0

Hi Sheba,
thanks for reaching out! You can find out the size of a np.array easily with shape:

Y_pr.shape

will return 300, 2 which means that we have a 300 by 2 array.
Hope this helps!

Best,
365 Eli

Submit an answer