Module 4 graded lab problems

I am having a couple of problems with the Module 4 graded Lab.
For exercise 1, I am getting a grader error “df_compact is incorrect type” although it’s a Series and the cell runs.
For exercises 5 and 6, I can’t find the “df_regression” dataframe which the notebook says is provided. If this is because I accidentally deleted something, how do I revert back to the original notebook?

Hi @lloydm999

For Exercise 1, you must check the instructions to see what is required. e.g. try wrapping your result in pd.DataFrame() or adjusting your code so it returns a DataFrame with proper column names, this might resolve the incorrect type error.

For Exercises 5 and 6, if df_regression is missing, it’s likely the cell that defines it was accidentally deleted or not run. You can revert to the original notebook or define the df_regression correctly.

Hope it helps! feel free to ask if you need further assistance.

Hi Lloyd, and welcome to the Forum! For refreshing the workspace, you can refer to the instructions here (under the Jupyter Lab Environment). Let us know if you’re still having the same issues after retrying the lab. Thanks!

Alireza/Chris - Thanks.
I updated the lab with the original C3M4_Assignment.ipynb. I added back my ex1 code and I don’t get the grader error now.
However I still don’t see df_regression defined anywhere in the notebook (ex5 says it is “already created for you”.)

Oh I see. Can you direct message me your notebook? You can click on my name and click the blue Message button. Thanks!