I am starting this as a new post as I didn’t receive any resolution. I am having trouble with final exercise I do so far, throwing 401 error. If it’s right, kindly share the fix you found. And I have tried accessing the url - https://2eraiuh.dlai.link/api/UScensus which throws the same access issue.
Hi! Can you send me your notebook via direct message so we can confirm? The lab is working fine on my end. You can click my name then the blue Message button. Thanks!
For other learners who may run into the same issue: There was a problem with the solution. You can refer to the practice labs and hints within the notebook to guide you towards the correct code. Hope this helps!
I confirm that I have not modified any provided helper-code cells.
Saved the notebook before running the tests and submitting again.
But the problem is still with me.
I’m unable to pass the grader for Module 2’s graded lab, despite extensive manual verification that my code and output are correct. Details below:
Exercise 3 (convert columns to numeric):
Error: “The following columns in census_df_clean do not have the correct type”
I verified: all listed columns show as int64 (also tried float64) via .dtypes, with no NaN or inf values.
Tried: pd.to_numeric(), explicit .astype(float), full kernel restart + run all + save before each grading attempt.
Exercise 5 (poverty rate calculations):
Error: “The values in the column ‘total_poverty_rate’/‘under_5_poverty_rate’/‘over_75_poverty_rate’ do not match the expected values”
I verified: the first 5 rows of my output match the expected output screenshot in the assignment exactly (e.g., 0.096262, 0.175305, 0.043644 for row 0).
Full dataset checked: no NaN, no inf, 826 rows, clean monotonic index starting at 0.
Exercise 6 (vulnerability score):
After fixing a naming confusion (used under_5_poverty_rate instead of the correct under_5_poverty_proportion per the formula in the directions), the histogram now visually matches the expected output shape.
Exercise 8 (z-score outliers):
Error: “The values in the column ‘z_score’ do not match the expected values”
I compared standard ddof=1 (.std()) vs ddof=0 (scipy.stats.zscore) against a provided expected-output screenshot — ddof=1 (Pandas default .std()) gives near-exact matches (differences ~0.0006%), but the grader still fails.
Troubleshooting already performed (multiple times, per support’s suggestion):
Kernel → Restart & Run All, in order, from the first cell.
Saved the notebook (Ctrl+S) both before and after running all cells, and again before each grading attempt.
Confirmed no provided/locked helper-code cells were modified.
Checked for duplicate # GRADED CELL markers — none found.
Given that the computed values visually and numerically match the expected outputs shown in the assignment instructions, I suspect this may be a grader-side issue (e.g., stale reference data, or a mismatch in the grader’s expected dtype) rather than an error in my code. Screenshots of the grader feedback and expected outputs are attached.
Could someone review the grading script for these specific exercises, or confirm the exact expected dtype/computation method?
Hi! Please do create a new topic as Tom suggested. With that, please also send me your notebook via direct message. You can click my name then the blue message button. Closing this topic now because the original issue was solved. Thanks!