Dask concat throws ValueError: Shape of passed values is (xxx, xxx), indices imply (xxx, xxx)

在使用Dask进行两个dataframe的concatenate操作的时候抛出了如下的错误:

ValueError: Shape of passed values is (xxx, xxx), indices imply (xxx, xxx)

这是因为DataFrame包含了重复的index(假设concatenate以index列为合并的列)

解决掉重复的就行了

欢迎关注 DataLearner 官方微信,获得最新 AI 技术推送

DataLearner 官方微信二维码