python - Pandas concat gives error ValueError: Plan shapes are not aligned -


I am quite new to pandas, I am trying to add a set of dataframe and I am getting this error

  Value error: Plan size is not alliance   

My understanding of the concat is that it will be included where the columns are the same, but those people For those who can not get it, the NA will not be filled in this case.

The concat statement here

  DFS = [npo_jun_df, npo_jul_df, npo_may_df, npo_apr_df, npo_feb_df,] alpha = pd. Contact (DFS)  

If this helps, then I have encountered this error When I tried to add two data frames (and as the time of writing this is only a related hit, which I can find on Google other than the source code).

I do not know whether the answer to OPP's solution has been solved (since he / she had not posted enough information), but for me, this was because when I < ['A', 'B', 'B', 'C'] (Duplicate column) with codeat for df1 column See Headings?) With dataframe DF2 column ['A', 'B'] . Due to the obvious repetition, pandals were thrown out of the wobbly. Change DF1 ['A', 'B', 'C'] (i.e. leaving one of the duplicate columns) and everything works fine. To

Comments

Popular posts from this blog

javascript - Render HTML after each iteration in loop -

java - Joda Time Interval Not returning what I expect -