This works-
Cor= Winedata.corr()
#print(Cor)
correlations = Winedata.corr()[‘alcohol’].drop(‘alcohol’)
#print(correlations)
sns.heatmap(Winedata.corr())
plt.show()
However, when we try to pass correlations variable to see the heat map after quality target value is dropped- the below code doesn’t work. Please explain.
Cor= Winedata.corr()
#print(Cor)
correlations = Winedata.corr()[‘alcohol’].drop(‘alcohol’)
#print(correlations)
sns.heatmap(correlations)
or
sns.heatmap(Winedata.corr()[‘alcohol’].drop(‘alcohol’))
plt.show()