how to append a column to a dataframe in pandas using condition based on existing column code example Example: append one column pandas dataframe df1 = df1.join(df2[column])