Sea Level Predictor-"index of range "

Tell us what’s happening:
Hello I have plotted my graph and it is working but when the test is running I am encountering an error when it is trying to to receive the ydata.
the error is “list index out of range”.
Appreciate any help

Your code so far
Here is my code:

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Data Analysis with Python Projects - Sea Level Predictor

Link to the challenge:

You need to create a scatter plot and plot 2 lines, but you have 3 scatter plots.

The test script is trying to analyze the 2 regression lines as lines, but they are scatter plots.

Everything else is correct, just need to fix those 2 regression lines.

Thank you!
I was able to fix my problem!

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.