For any and all questions relating to challenge 14.

For a tutorial on how to use Jupyter Notebook, we put together this video:

Still have questions? Read all the FAQs here.

To continue to play around with the datasets in a Jupyter environment, click here.

The number of wines in the accepted answer doesnât seem to be right.

8 Likes

I agree. The actual answer and the options in the multiple choice answers donât match.

2 Likes

Yeah I agree. My answers say itâs 35 for Q1, but my answers match the correct answers for Q2 and Q3

For Q1:
So I did a count by region and there are 35 in Stellenbosch
df.groupby(âregionâ).count()
Stellenbosch 35

There is only one answer with 35 for Q1. And I got it wrongâŚ

4 Likes

Yeah thatâs why I always do all the questions in case, and choose the one with majority (out of three)

1 Like

Yes, I also got 35 for Q1.

The only way to get the 11.72 for Q2 was sulphates < 0.6 & price <= 20
(I felt that the correct way would be sulphates <= 0.6 and price < 20.00)

I was also very confident in wine 1017 being correct for Q3.

3 Likes

Seems weak. Just saying. The language for the questions could use a review.

5 Likes

Yeah for Q2 itâs sulph <= 0.6 and price <20

For Q3, 1025 is still cheaper than 1017 and same quality. I guess it may have been filtered out if you used the incorrect s < 0.6 and p <=20 filter

2 Likes

Especially the previous challenge, the wording could be written better for sure

Iâm in same boat, I got 35 for first answer not 32, but I got the correct answer for question 2 and 3.

Here is my solution:

print(âQ1 # of wines from Stellenbosch:â,df[df[âregionâ].str.contains(âStellenboschâ)].shape[0])

filterDF = df[(df[âsulphatesâ]<=0.6) & (df[âpriceâ]<20)]
print("Q2 avg price of wines from Bordeaux: ",filterDF[filterDF[âregionâ]==âBordeauxâ][âpriceâ].mean())

filterDF[filterDF[âregionâ].str.contains(âOkanagan Valleyâ)].sort_values([âqualityâ,âpriceâ],ascending=[False,True])

2 Likes

Ok, I see that I did make that mistake, after making the Q2 answer fit the 11.72 (after getting 35 for Q1), I didnât correct the filters.

These were my answers too, was surprised I was wrong.

I also looked at their solution after I submitted, itâs funny because their solution says 35 as wellâŚ yet for question 2 they commented that the answer is \$11.714 even though their output clearly shows \$11.30 haha. And for question 3 they also got 1025.

2 Likes

No points for me. Also got 35 for Q1.

I have to say the quality for this 21-Day Challenge is quite low. I am disappointed.
I really like the concept and the overall structure, but this yearâs challenge seems slapped together (at best), designed by folks who are not proficient in the tech and teaching (at worst).

Thanks for the replies (I thought I was going crazy o.0 )

12 Likes

Yeah, I hope they review this challenge and future mishaps released in the future

Yeah, looks like todayâs challenge was an outright mistake. At least day 1 challenge was a weird brain teaser/logic question even though from best practices the answer they gave was not the best, it was âtechnicallyâ still correct since it was the only one that printed signature on same line. But todayâs answersâŚ just outright typo/mistake. Even in their proposed solution they show 35 not 32âŚ