# 创建空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])
2023-12-01 17:53:04
# 创建空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])