headlist = ['a', 'b'] datalist = [[1, 2], [0,3], [3,2]] df = pd.DataFrame(data=datalist,columns=headlist) datalist = [[1, 3], [2, 1]] df1 = pd.DataFrame(data = datalist, columns=headlist) # 加 print df.add(df1) # nan用0填充 print df.add(df1, fill_value =…