一、使用pandas进行数据合并
pd.merge(left, right, how='inner', on=None, left_on=None, right_on=None,
left_index=False, right_index=False, sort=True,
suffixes=('_x', '_y'), copy=True, indicator=False,
validate=None)
how参数:inner,left,right,outer =数据库的内连接、左右连接和外连接
详细使用方法可参考:https://www.jianshu.com/p/3ed379a2f846