I have two dataframes dat1 and dat2 containing name and their respective value.
dat1 +------+------------+----------------+