# 创建空DataFrame
df = pd.DataFrame(columns = [‘YJML’,’EJML’,’SJML’,’WZLB’,’GGXHPZ’,’CGMS’])
# 插入数据(忽略索引)
df = df.append(kjcgml.loc[i].append(bzwzcgml.loc[j]), ignore_index=True)
# 按索引添加
df.loc[i] = kjcgml.loc[i].append(bzwzcgml.loc[j])
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/13006.html