In [64]: tz_counts[:10].plot(kind='barh',rot=0)
Out[64]: <matplotlib.axes.AxesSubplot at 0x5b65a90>
solution:
http://blog.csdn.net/lg1259156776/article/details/52717445
解决方案是:导入matplotlib.pyplot库,绘图后再调用matplotlib.pyplot.show()方法就能把绘制的图显示出来了!
import pandas as pd
from numpy import *
import matplotlib.pyplot as plt
ts = pd.Series(random.randn(1000), index=pd.date_range('1/1/2000', periods=1000))
ts = ts.cumsum()
ts.plot()
plt.show()