Python 记录合并
2017-08-27 本文已影响0人
正在充电Loading
import pandas
from pandas import read_csv
data1 = read_csv(
'D:\\PDA\\4.10\\data1.csv', sep="|"
)
data2 = read_csv(
'D:\\PDA\\4.10\\data2.csv', sep="|"
)
data3 = read_csv(
'D:\\PDA\\4.10\\data3.csv', sep="|"
)
data = pandas.concat([data1, data2, data3])
data = pandas.concat([
data1[[0, 1]],
data2[[1, 2]],
data3[[0, 2]]
])