pandas 使用dataframe 索引项相同时出现bug

使用的是join函数来合并两个dataframe: df=df2.join(df1)

  bug:columns overlap but no suffix specified: Index([u'mukey'], dtype='object')

solution:

  使用:df=df1merge(df2,left_index = True, right_index = True)

 
posted @ 2018-09-13 14:09  青牛梦旅行  阅读(2321)  评论(0编辑  收藏  举报