使用python 3.5.0.18
import pandas as pd
导入了2个单独的excel文件,这里1)stu = pd.read_excel("D:\\program\\python\\sample_data\\name1.xlsx",index_col=2)
是数据文件,其他2)paper = pd.read_excel("D:\\program\\python\\sample_data\\name2.xlsx")
是参考文件,与第一个文件(名称stu)中的数据进行比较。你知道吗
现在的问题是如何比较参考文件的第一行(仅一行)和数据文件的多行基本上数据文件中的值应该小于或等于参考文件的值??你知道吗
查找数据文件df of Data file with name stu的屏幕截图
要与之比较数据的引用文件df of Reference_File with name paper
也不想合并2个df。你知道吗
你可以这样做:
相关问题 更多 >
编程相关推荐