Ex. 6. Module 5 Assignment: Analyzing Chlorophyll levels in Australian Coral Reefs

Hi!

In Exercise 6, in the graded cell, the prewritten code starts with the following code:

However, after filling in the None values where needed after ‘Start Code Here’, I got the following error:

After ‘consulting’ with LLM about the possible source of the error, it suggested correcting the code in the following way:

After implementing the correction (even though it did not apply directly to the line that was supposed to be modified) the code ran correctly.

Should the prewritten code be changed, or is it possible to make some adjustments in the solution code that is represented after the line ‘Start code here’?

Thanks in advance!

Hi Veronika. Sean mentions in class that you can safely ignore that SettingWithCopyWarning warning. From your screenshot, I don’t see an error message (e.g. SyntaxError) so it seems you indeed only saw a warning. Thus, it should be fine to keep the original code. Nonetheless, we’ll see if we can revise the boilerplate to also avoid warnings like that. For now, I recommend just keeping the original to avoid possible issues with the autograder. Hope this helps.

2 Likes

Thank you @chris.favila , you are right, everything works without changing the main code.

2 Likes