Merging two pandas dataframes results in “duplicate” columns

后端 未结 3 1078
隐瞒了意图╮
隐瞒了意图╮ 2020-12-30 10:46

I\'m trying to merge two dataframes which contain the same key column. Some of the other columns also have identical headers, although not an equal number of rows, and after

3条回答
  •  难免孤独
    2020-12-30 11:03

    I have the same problem with duplicate columns after left joins even when the columns' data is identical. I did a query and found out that NaN values are considered different even if both columns are NaN in pandas 0.14. BUT once you upgrade to 0.15, this problem disappears, which explains why it later works for you, you probably upgraded.

提交回复
热议问题