Reputation: 133
I want put a caculated value in title, and it can work
plt.title(sum_auc)
However,if I add "AUC:", it didn't work
plt.title("AUC:",sum_auc)
and show no attribute 'pop'
Upvotes: 0
Views: 1821
Reputation: 2819
Try to cast sum_auc as str
plt.title(f"AUC:{sum_auc}")
Or
plt.title("AUC:"+str(sum_auc))
Upvotes: 1