使用python对两个Excel表进行数据比较,得到差异和相同的数据行。
fengchuhao123:
为啥替换了,也没有输出的对比呢?空文件
如何删除(文件正在运行/已在其他应用中打开等)的文件
暗黑无敌破坏神573:
55555黑屏了咋搞
使用python对两个Excel表进行数据比较,得到差异和相同的数据行。
changeableboy:
excel_big=pd.read_excel(r'C:\Users\贾鑫磊\Desktop\python实验\全量PYTHON.xlsx')
excel_small=pd.read_excel(r'C:\Users\贾鑫磊\Desktop\python实验\连湖变电站底稿.xlsx')
new_excel=pd.merge(excel_big,excel_small,how='right',on='资产编码')
test=compare_data(excel_small,new_excel)
print(test)
print('运行结束')
---------------------------------------------------------------------------------------------------------------------------
ValueError: Invalid file path or buffer object type: |