问题标签 [instance-method]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python-2.7 - 如何克服此错误“TypeError: unsupported operand type(s) for -: 'float' and 'instancemethod'”
我正在使用熊猫,我刚刚遇到了这个错误,所以基本上我连接了几个数据框来制作一个,然后我使用以下命令获取了每列的“平均值”和“标准差”
现在当我试图绘制这些数据时
然后我得到了这个错误TypeError: unsupported operand type(s) for -: 'float' and 'instancemethod'
所以当我检查了std
type(df['fwhm']['mean'])
then 的类型时,它说它是一个instancemethod
.
我该如何解决这个问题?