With the help of the question: Correlation heatmap, I have tried the following:
import pandas
import seaborn as sns
dataframe = pandas.read_csv("training.csv", header=0,index_col=0)
for a in list(['output']):
for b in list(dataframe.columns.values):
corr.loc[a, b] = dataframe.corr().loc[a, b]
print(b)
print(corr)
sns.heatmap(corr['output'])
I got the following error:
IndexError: Inconsistent shape between the condition and the input (got (8, 1) and (8,))
I do not want to have the all values correlation heatmap with all values. I only want to have the correlation of one column with respect to others.
Kindly, let me know what I am missing.