Update data science solution

Is zero the only real output you expect here? I'm confused that this is the only non-error case. What is an example chi square test for which you get a non-zero result.