Скажем:
Код: Выделить всё
df1
column1 column2 column3
a b c
d e f
df2
column1 column2 column3
g h i
j k l
df3
column1 column2 column3
m n o
p q r
Я пробовал добавить и объединить, а также объединить внешние объекты, но возникли ошибки.
Вот что Я пробовал:
Код: Выделить всё
df_final = df1.append(df2, sort=True,ignore_index=True).append2(df3, sort=True,ignore_index=True)
df_final = pd.concat([df1, df2, df3], axis=1)< /p>
Но я получаю такую ошибку:
Код: Выделить всё
AssertionError: Number of manager items must equal union of block items# manager items: 61, # tot_items: 62
Мы будем очень признательны за любые рекомендации!
Подробнее здесь: https://stackoverflow.com/questions/522 ... me-columns