Analyzing Car CO₂ Emissions Coding Query

I used [‘Engine size’, ‘Cylinders’, ‘City’, ‘Highway’, ‘Combined’,
‘Combined (mpg)’, ‘CO2 emissions’]

The grader feedback unclear to me:

ex2: pairplot

Failed test case: You have some extra features in your list of numeric_features.

ex3: correlation

Failed test case: correlation_matrix has an incorrect value. Please check your correlation matrix.

Hello, @Lam_Chou_Vun_Dennis,

Please check out the extra hint above the cell by clicking on it and it will expand.

image

While it has explained it, I want to add that we don’t just consider a feature populated with numbers as numeric feature, because ordinal feature and categorical feature may also be numbers. For categorical, it is super clear because its values don’t have to preserve any meaning of ordering. :wink:

For ex 3, try again after passing ex 2 because the former depends on the latter.

Cheers,
Raymond

OK all done.

1 Like

Hello Mr. Raymond,
Am too stuck in this exercise - # GRADED CELL: Exercise 2 (Analyzing car CO2)

Whatever knowledge I gathered, I made this following code. Please let me know, if I miss anything. I followed the hint als. Thanks in advance.

GRADED CELL: Exercise 2


### START CODE HERE ###
# mentor edit: code removed

### END CODE HERE ###

plt.show()

Sorry to say, posting your code on the forum is not allowed by the Code of Conduct.

I have edited your message.

@bgopal What error do you get, could you please elaborate

my bad. Apologies. Cracked the code with the help of one forum members. Thanks TMosh.

1 Like