pandas 入门
建立环境 安装 pandas sudo apt-get install build-essential python-dev sudo apt-get install python-pandas python-tk sudo apt-get install python-scipy python-matplotlib python-tables sudo apt-get install python-numexpr python-xlrd python-statsmodels sudo apt-get install python-openpyxl python-xlwt python-bs4 安装 ipython-notebook sudo pip install "ipython[notebook]" sudo pip install pygments 运行 ipython-notebook ipython notebook #如果你使用matplotlib内嵌进网页中,那么需要运行: ipython notebook --matplotlib inline 导入 pandas import pandas as pd import numpy as np 读入数据 # 读入 CSV 格式数据 # 数据来源:http://boxofficemojo.com/daily/ df_movies = pd.read_csv('movies.csv', sep='\t', encoding='utf-8') df_movies....