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)

 

猜你喜欢

转载自www.cnblogs.com/mengxiangtiankongfenwailan/p/9640187.html