https://blog.csdn.net/Elvis__c/article/details/126411204
#假设有表df1-df2-df3-df4 四张表
res=[df1,df2,df3,df4]
import pandas as pd
from functools import reduce
res_merge= reduce(lambda left,right: pd.merge(left,right,on=['name'],how='left'), res)
>>res_merge
>
name age sex class score
0 关羽 1 C 1.0
1 刘备 2 0.0
2 卧龙 3 男 A
3 凤雏 4 男 A 1.0
标签:right,res,df1,DataFrame,merge,pandas,left From: https://www.cnblogs.com/chentianyu/p/17313949.html