📜  水平堆叠数据 pandas - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:31.586000             🧑  作者: Mango

代码示例1
import pandas as pd

df1 = pd.DataFrame({
    'A': [1,2,3,4,5],
    'B': [1,2,3,4,5]
})

df2 = pd.DataFrame({
    'C': [1,2,3,4,5],
    'D': [1,2,3,4,5]
})

df_concat = pd.concat([df1, df2], axis=1)

print(df_concat)