The second instruction mentions to create a new variable but the exercise doesn’t continue with that. Instead, we have to create a new column in the dataframe for the instruction to successfully complete.
You mean this part?
" Create a new variable
rating_codes , which contains the numerical codes associated with each category."
The word “variable” should be “column”, is that what you mean?
It says it in the instruction in the terminal window:
# Create rating_codes by encoding the `Rating` variable with .cat.codes clothes['rating_codes'] = clothes['Rating'].cat.codes
Yeah. Even the explanation above the instructions explains this as a new variable instead of a new column. That is what I meant.