pandas模块
方法有两个
1.在windows下安装pandas,只安装pandas一个包显然是不够的,它并没有把用到的相关包都打进去,这点是很麻烦的,只有等错误信息出来后才知道少了哪些包。我总结了一下,一共需要安装如下包:
pyparsing-2.0.2.win32-py2.7.exe
matplotlib-1.3.1.win32-py2.7.exe
openpyxl-openpyxl-5d2c0c874d2.tar.gz
setuptools-3.8.1.win32-py2.7.exe
numpy-MKL-1.8.1.win32-py2.7.exe
six-1.7.3.win32-py2.7exe
python-dateutil-2.2.win32-py2.7.exe
这些安装包的下载地址是:
https://qa.debian.org/watch/sf.php/matplotlib
pyparsing-2.0.2.win32-py2.7.exe
matplotlib-1.3.1.win32-py2.7.exe
openpyxl-openpyxl-5d2c0c874d2.tar.gz
setuptools-3.8.1.win32-py2.7.exe
numpy-MKL-1.8.1.win32-py2.7.exe
six-1.7.3.win32-py2.7exe
python-dateutil-2.2.win32-py2.7.exe
这些安装包的下载地址是:
https://qa.debian.org/watch/sf.php/matplotlib
将最后的matplotlib改成对应的模块。或者到
搜索一下
2.直接使用pip安装这个包就不用那么麻烦了,直接输入pip install pandas就可以了
在pandas中使用Series类的plot画图。 如果tz_counts是一个Series类: 1.在python画图,需要先导入matplotlib.pyplot:
import
matplotlib.pyplot
as
plt
tz_counts[:
|