Pandas concat yields ValueError: Plan shapes are not aligned

后端 未结 6 705
忘掉有多难
忘掉有多难 2020-12-03 02:23

In pandas, I am attempting to concatenate a set of dataframes and I am getting this error:

ValueError: Plan shapes are not aligned

My underst

6条回答
  •  既然无缘
    2020-12-03 02:58

    You need to have the same header names for all the df you want to concat.

    Do it for example with :

    headername = list(df)

    Data = Data.filter(headername)

提交回复
热议问题