Data Analysis with Python Projects - Demographic Data Analyzer

Tell us what’s happening:

I’m trying to test how I’m doing with Demographic Data Analyzer but I can’t run the tests in Gitpod terminal.

I tested several ways like pytest test_module.py but I can’t make it work.

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”)

# 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 = series['race'].value_counts()

Your browser information:

User Agent is: Chrome 132 on Windows 11

Challenge Information:

Data Analysis with Python Projects - Demographic Data Analyzer

you need to execute main.py file

Yes that I understand by I tried as previous exercise with python3 main.py and gives me error command not found.

you can try with python or py

1 Like