我具有以下熊猫数据帧,我想绘制NaN
和high
值作为matplotlib一个bar plot
:剧情条形图数据帧
df
Close 1 Close 2 Close 3 Close 4 Close 5 Close 6
Index
NaN 0.000348 0.000975 0.001450 0.001923 0.002483 0.002916
high 0.001416 -0.000215 0.000058 0.000026 -0.000766 -0.000255
在x轴上的标签应的列名。如何才能做到这一点?
非常感谢提前。
试试这个:'df.T.plot.bar(腐= 0)' – MaxU
@MaxU,谢谢。哇,我期待一个更长的解决方案,例如这里介绍:http://matplotlib.org/examples/api/barchart_demo.html –