python3 main.py
Traceback (most recent call last):
File “/home/runner/boilerplate-demographic-data-a nalyzer-1/main.py”
“, line 2, in
import demographic_data_analyzer
File
" /home/runner/boilerplate-demographic-data-a nalyzer-1/demographic_ data analyzer.py” 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(“adult.data.csv”)
df.head()
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/110.0.0.0 Safari/537.36 Edg/110.0.1587.50
Challenge: Data Analysis with Python Projects - Demographic Data Analyzer
Link to the challenge: