Testing dataframe values in first assignment do not pass #207
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi Skye, I am having the same problem but I'm not sure how to fix it. And the test cell says "Oops - your data are not correct." My suspicion is that this is occurring because the values in the data we downloaded (which seem to be the same) are different from the values for the same dataset in the tutorial video. It looks like the test cell is assessing whether we got the right data using summary statistics for the dataset.
I'm thinking perhaps the dataset was updated recently with new values (perhaps corrections) and that's why the test cell no longer works? @eculler Could this be the reason? |
Beta Was this translation helpful? Give feedback.
-
@ea-students You're right, my test values didn't get updated with a recent change. So all the 'values' tests will be wrong, but I will still give you credit. Not sure how that got through, since I believe they were passing when I made my video...but sometimes these things happen! Please don't change the test cells, since that will make it difficult for me to run your notebooks when I grade! If you would like to check your mean values, the correct ones are: Test 1: should pass The are computed with the following code, which computes the mean of all columns and then rounds it to two decimal points: print([round(val, 2) for val in temp_df.mean().values]) |
Beta Was this translation helpful? Give feedback.
@ea-students You're right, my test values didn't get updated with a recent change. So all the 'values' tests will be wrong, but I will still give you credit. Not sure how that got through, since I believe they were passing when I made my video...but sometimes these things happen! Please don't change the test cells, since that will make it difficult for me to run your notebooks when I grade!
If you would like to check your mean values, the correct ones are:
Test 1: should pass
Test 2: [198362.0, 62.05]
Test 3: [1983.5, 62.05]
Test 4: [1983.5, 62.05, 16.69]
The are computed with the following code, which computes the mean of all columns and then rounds it to two decimal points: print([round…