我正在尝试使用python中的vlookup
来pandas
,下面是我的程序,但得到了key error = Name error
import pandas as pd
df1 = pd.read_excel ('vlookup_pandas.xlsx', Sheet_name = 'Table1',)
df2 = pd.read_excel ('vlookup_pandas.xlsx',Sheet_name = 'Table2')
results = df1.merge(df2, on='Name')