Last answered:

23 Dec 2024

Posted on:

11 Dec 2024

1

Issue in Practice Exam for Section 3: Pandas Series

Regarding the practice exam for Section 3: Pandas Series , I believe the answer for question No. 5 seems incorrect. Could you please verify this and inform me of the correct answer? I think that the index of min and max value after sorting  should be 0 and 3 
3 answers ( 0 marked as helpful)
Instructor
Posted on:

11 Dec 2024

0
Hi Panthakarn!
Thanks for reaching out.

The order of the values in the numbers list is [15, 17, 1000, 345]. In addition, as you suggest, in programming we start counting from 0. So, please revise the positions of the numbers you are referring to as minimum and maximum values from the list. 

Hope this helps.
Kind regards,
Martin
Posted on:

23 Dec 2024

0
I too felt the same.. After sorting, we get [15, 17, 345, 1000]. minimum is 15 at [0] and maximum is 1000 at [3].
Instructor
Posted on:

23 Dec 2024

0

Hi Tulasi!
Thanks for reaching out and doing the practice exams.
As explained in the answer of the practice exam, the indexing of the values doesn't change (although their order does). You can run the code on your end to see that (i.e. focus on the indexing). Thus, the answer is currently correct (I do obtain 507.5 when using the currently suggested answer, as opposed to 184.5).
Hope this helps.

Kind regards,

Martin

Submit an answer