I need a bit of help in ex 4

I get this error (basically saying the ‘df’ is not defined, I am not sure what I am doing wrong here)

[{“metadata”:{“scrolled”:true,“tags”:[“graded”],“trusted”:true},“id”:“b8ca86d8”,“cell_type”:“code”,“source”:“# Test your code\n\nalpha = 0.05\nreject_nh = reject_nh_t_statistic(t, df, alpha)\n\nprint(f"The null hypothesis can be rejected at the {alpha} level of significance: {reject_nh}\n")\n\nmsg = "" if reject_nh else " not"\nprint(f"There is{msg} enough statistical evidence against H0.\nIt can be concluded that there is{msg} a statistically significant difference between the means of the two samples.")”,“execution_count”:25,“outputs”:[{“output_type”:“error”,“ename”:“NameError”,“evalue”:“name ‘df’ is not defined”,“traceback”:[“\u001b[0;31m---------------------------------------------------------------------------\u001b[0m”,“\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)”,“Cell \u001b[0;32mIn[25], line 4\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;66;03m# Test your code\u001b[39;00m\n\u001b[1;32m 3\u001b[0m alpha \u001b[38;5;241m=\u001b[39m \u001b[38;5;241m0.05\u001b[39m\n\u001b[0;32m----> 4\u001b[0m reject_nh \u001b[38;5;241m=\u001b[39m reject_nh_t_statistic(t, \u001b[43mdf\u001b[49m, alpha)\n\u001b[1;32m 6\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m"\u001b[39m\u001b[38;5;124mThe null hypothesis can be rejected at the \u001b[39m\u001b[38;5;132;01m{\u001b[39;00malpha\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m level of significance: \u001b[39m\u001b[38;5;132;01m{\u001b[39;00mreject_nh\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;130;01m\n\u001b[39;00m\u001b[38;5;124m"\u001b[39m)\n\u001b[1;32m 8\u001b[0m msg \u001b[38;5;241m=\u001b[39m \u001b[38;5;124m"\u001b[39m\u001b[38;5;124m"\u001b[39m \u001b[38;5;28;01mif\u001b[39;00m reject_nh \u001b[38;5;28;01melse\u001b[39;00m \u001b[38;5;124m"\u001b[39m\u001b[38;5;124m not\u001b[39m\u001b[38;5;124m"\u001b[39m\n”,“\u001b[0;31mNameError\u001b[0m: name ‘df’ is not defined”]}]}]

When it says df is not defined its probably because you have not defined the dataframe or you forgot to run the line where it is defined!