import pandas as pd %pylab 一.使用numpy创建 df = pd.DataFrame(np.arange(16).reshape((4,4)), index=list('abcd'), columns=['one','two','three','four']) df 二.由Series组成的字典 df3 = pd.DataFrame({'one':pd.Series([0,1,2,3]), 'two':pd.Series([4,5,6,7]), 'three':pd.