Closed Croocoodile closed 4 years ago
Good job, one simple note: in ex.7 your results of the ratio sum up to > 1 since you used total = len(emp.dropna())
, which dropped rows that have value in race and gender by missing other columns. You can add subset
argument in your dropna
to make sure you only drop rows missing these two variables.
hw3