Hello, I am stuck on Exercise 3 in the candies assignment in the week 4 module.
Two issues:
“Use the mean function from your stats module (remember how to use an alias with the dot . ) to find the average popularity score of all the candies.” ←- I have no recollection of how to do this and am not seeing it in the lecture notes. Could somebody point me to the right format/location in the lesson?
-I am getting the attached error after successfully importing the stats package; any ideas on how to troubleshoot? Thanks!
Thank you! I think the stats.mean function is now working, but I’m still getting the error “No module named ‘stats’” even after rerunning all of the cells. Any other suggestions?
There were two issues - one was that I couldn’t remember the alias function (which your suggestion addressed), the other was that the code doesn’t seem to recognize the stats module I imported. The latter has not been fixed after I reran the code.
No problem - I appreciate your engagement on it! Here are the instructions:
Import the Python package statisticsasstats
(^I did this and tests passed)
Then, the next instruction was: Time to calculate! Use the mean function from your stats module (remember how to use an alias with the dot . ) to find the average popularity score of all the candies.
Great @ellbee
Always! post screenshot of complete error, so that it helps mentors to understand why you encountered the error even if they haven’t done the course, some mentors can find the reason behind error when we have a complete log of the error or atleast provide steps to resolve your issue.