pandas.errors.MergeError: Passing 'suffixes' which cause duplicate columns {'name_x'} is not allowed.问题的解决

问题描述

合并表时,由于出现了重复名称的列,就导致了这种情况的出现:

问题解决

在merge函数里面加上这个参数就行:

suffixes=('_old','_new')

就能够解决这个问题啦~~~

posted @ 2024-03-06 18:08  yesyes1  阅读(466)  评论(0编辑  收藏  举报