数据合并
df1.append(df2)
ndf = (df['提名1']
.append(df['提名2'], ignore_index=True)
.append(df['提名3'], ignore_index=True))
ndf = pd.DataFrame(ndf, columns=(['姓名']))
df.concat([df1, df2], axis=1)
df1 = pd.read_csv('111.csv', sep='\t')
df2 = pd.read_csv('222.csv', sep='\t')
excel_list = [df1, df2]
result = pd.concat(excel_list)[]
result.to_excel('333.xlsx', index=False)
import glob
files = glob.glob("data/cs/*.xls")
dflist = []
for i in files:
dflist.append(pd.read_excel(i, usecols=['ID', '时间', '名称']))
df = pd.concat(dflist)
df1.join(df2,on=col1,how='inner')
df_all = pd.merge(df_sku, df_spu,
how='left',
left_on=df_sku['product_id'],
right_on=df_spu['p.product_id'])