【发布时间】:2016-04-02 09:45:55
【问题描述】:
使用python 3.5 pandas 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)中的数据进行比较。
现在的问题是如何将参考文件的第一行(仅单行)与数据文件的多行进行比较,基本上数据文件中的值应该小于或等于参考文件的值?
找到DATA文件df of Data file with name stu的截图
与数据进行比较的参考文件df of Reference_File with name paper
也不想合并2个df。
【问题讨论】:
标签: python excel python-3.x pandas