mbakker7 / exploratory_computing_with_python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

py_exploratory_comp_3 Exercise 6 Answer

jennysoon opened this issue · comments

I believe there is an error in the answer for exercise 6 oil data. When printing the name of the month when each price is exceeded for the first time, the index refers to the actual number of the month, but since indexing starts at 0, I believe the answer should be
months[int(oilprice[i, 1]) - 1] instead of months[int(oilprice[i, 1])].