Grading: Module 2 Assignment: Identifying Vulnerable Communities using the U.S. Census API

Hello there,

I did the assignment, i get all the expected values when i run the code and it seems very much correct.

I always get 65% as i have errors like the below:

Failed test case: The following columns in census_df_clean do not have the correct type: ['county', 'employed_male', 'employed_total', 'female_pop_over_75', 'female_pop_under_5', 'male_pop_over_75', 'male_pop_under_5', 'population', 'poverty_count', 'poverty_count_female_over_75', 'poverty_count_female_under_5', 'poverty_count_male_over_75', 'poverty_count_male_under_5', 'state', 'total_pop_male']. Make sure you converted the columns to numeric correctly.

When i run the code i see that all are changed to int64 as requested.

Failed test case: The values in the column 'z_score' do not match the expected values. Make sure you calculated the Z-scores correctly.

I get same as expected data..

What am i doing wrong? what is a way to fix this and pass this assignment?

Lab id: ywjpiqxvwtnk

/lab/tree/C4M2_Assignment.ipynb

Apparently i figured out the ‘mistake’. used astype(‘int64’) instead of astype(‘Int64’) and everything was found correct after that.

2 Likes