I’m having an issue with exercise 1. The auto grader tells me df_compact is the wrong type when it is a Series, but changing it to a DataFrame causes a type error when tstat is passed to round(). I tried manually getting around this by wrapping test_results in float(), but when I submit it the auto grader then says “Failed test case: df_compact has an incorrect value. Make sure you are filtering the data correctly.” However, printing df_compact shows that it correctly filtered the 377 rows of Compact cars. I refreshed the notebook and I’m still getting the same issue. Every other exercise is 10/10 correct.
I do not understand what I’m doing wrong (or, rather, the exact answer the auto grader is looking for). Please let me know how to fix this.
{mentor edit: image of code removed}