如图 两个表 想在data1 中新建一列 把data2 中对应的数据映射过来 没有的填充空值
a.merge(b,how='left') # 默认填充就是空值 # a.merge(b,how='left').fillna(0)