df = DataFrame(1.0, index=list('abcdefghij'), columns=[0, 1, 2])
df2 = DataFrame(0, index=list('afg'), columns=[1, 2])
needed_columns = df.columns - df2.columns
df2[needed_columns] = df.reindex(index=df2.index, columns=needed_columns)
df2
df3 = DataFrame(0, index=list('cji'), columns=[1, 2])
needed_columns = df.columns - df3.columns
df3[needed_columns] = df.reindex(index=df3.index, columns=needed_columns)
df3
Fastest way to copy columns from one DataFrame to another using pandas?