Skip to content

Conversation

@dipraj-howlader
Copy link

Corr() doesn't support "Species", for this we need to temp remove the column.

Dataframe contains a feature "Species" which prevent Corr() to make its operation. for this,

#new code

numeric_iris = iris.drop(columns=['species'])
correlation = numeric_iris.corr()

sns.heatmap(numeric_iris.corr(),cmap='coolwarm', annot = True)

run this code to success your operation..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant