Data Analysis with Python Projects - Demographic Data Analyzer

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

Describe your issue in detail here.

Am trying to run my code to see if am doing it right. but its not running am getting the above mentioned error.

Your code so far
import pandas as pd

def calculate_demographic_data(print_data=True):
# Read data from file
df = pd.read_csv(“”)
race_count = df[“race”].values_count()

# How many of each race are represented in this dataset? This should be a Pandas series with race names as the index labels.
race_count = df["race"].values_count()

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36 Edg/110.0.1587.50

Challenge: Data Analysis with Python Projects - Demographic Data Analyzer

Link to the challenge:

You need to update your dependencies since you don’t have pandas installed. Since you appear to be using replit, there are many posts with solutions to this problem in the forums. If those don’t work, post a link to the repl for debugging.

1 Like

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