Ask coding questions

← Back to all posts
How to add pandas in Classroom unit test
glrudolph (7)

I'm creating an Assignment in classroom. I want it to be autograded, and in my unit code I want to use pandas. I add "import pandas" as expected in the import section of the unit test case code, but when I run a unit test on my model code (the model code does not use pandas, only the test code does), the system says no module named pandas.

What do I have to do to make this work?

varun246 (0)

tried to import import panda, but was getting the below error
ModuleNotFoundError: No module named 'Panda

vedprad1 (854)

Is there an actual module called pandas? If there is no such package, that might be the problem.

vedprad1 (854)

@glrudolph : Could you post the code and the test case here? Thanks!