numpy库和pandas常用命令

计算机

一、使用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

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注