柱状图的TypeError: unsupported operand type(s) for -: 'str' and 'float'该怎么解决

在做柱状图的时候遇到提示TypeError: unsupported operand type(s) for -: 'str' and 'float'

img


这是我的代码

img

在解决问题前,请回答问题/改进代码:
1.MySql的语句中,为什么查询语句要用三个双引号?
2.改进你的MySql查询模块,80%是这里错了