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