Type error in visualising pandas dataframe as heatmap
I figured it out after a while: Appears that the type of DF.values
was set to object
. It can be fixed by the following line:
DF = DF[DF.columns].astype(float) # or int
After that everything works!