import pandas as pd
xls1='C:\\Downloads\\Allparts.xlsx'
df = pd.read_excel(xls1,sheet_name='Data')
df=df['Part Number'].head(10)
xls2='C:\\Downloads\\Part_Details.xlsx'
dz = pd.read_excel(xls2,sheet_name='Data')
dz=dz.drop(dz.columns[[2, 4]], axis = 1)
dz=dz.drop(dz.columns[[3, 4, 5]], axis = 1)
for fd in df:
if dz['Name'].str.contains(fd):
print(dz['Name'],fd)
xls2:
元芳怎么了
相关分类