0
我尝试绘制pivot_table的柱状图用下面的代码:Barplot返回不受支持的操作数类型(S) - :“STR”和“浮动”
fig=plt.figure(figsize=(10,10))
ax1=fig.add_subplot(111)
ax1.bar(Products.index,Products["Amount"].values)
枢轴表是这样的:
Amount
Material
454T006S R 167 134:11 0.000000
3457T006S R IE216 167 246:1 4.500000
67T009S R 1510K304:1 36.000000
7676009S R IE216 1510K304:1 30.500000
676T012S 167 246:1 1.000000
2324T012S R 1510 111 6.000000
1516T012S R 1510 151 50.500000
1516T012S R 1510 20:1 26.500000
但它返回:
不受支持的操作数类型(一个或多个),用于: - 'STR' 和 '浮动'
我在做什么错了?