You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ISSUE
Mismatch between instructions and provided code. We need to update one of them (probably the code) to align with the other.
DETAIL
The instructions say:
We can use this new DataFrame to compare two concepts in our data. We will look for the columns of "husband" and "wife" – two concepts we expect to appear in this dataset, and that we could imagine being related to gender bias. We then sort the values of the resulting DataFrame based on the "wife" columns in descending order, and print the first 20 values.
But the provided code is: corr[['husband','wife']].sort_values(by='husband',ascending=False)[:30]
We can fix this by replacing that line of code with: corr[['husband','wife']].sort_values(by='wife',ascending=False)[:20]
The text was updated successfully, but these errors were encountered:
LOCATION
TF-IDF_Lesson.ipynb
Using TF-IDF Correlations to Explore Biases
ISSUE
Mismatch between instructions and provided code. We need to update one of them (probably the code) to align with the other.
DETAIL
The instructions say:
But the provided code is:
corr[['husband','wife']].sort_values(by='husband',ascending=False)[:30]
We can fix this by replacing that line of code with:
corr[['husband','wife']].sort_values(by='wife',ascending=False)[:20]
The text was updated successfully, but these errors were encountered: