Data Analysis with Python course problem

When I click Run to run my code, it takes a long time (apparently doing an update: “Updating numpy (1.24.1 → 1.18.5)”) and finally gives the following error:

Traceback (most recent call last):
File “/home/runner/boilerplate-demographic-data-analyzer/”, line 2, in
import demographic_data_analyzer
File “/home/runner/boilerplate-demographic-data-analyzer/”, line 1, in
import pandas as pd
ModuleNotFoundError: No module named ‘pandas’
exit status 1

Here’s my code: - boilerplate-demographic-data-analyzer - Replit

Any idea what might be causing these issues?

You need to update your pyproject.toml and update your dependencies as described in many posts in the forums. Bumping your python version to 3.11 and removing and installing pandas fixes the problem. You will need to do this for all the python data analysis projects.

That worked – thank you!

can someone refer me on how to get my done on how to update my dependencies

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.