append dataframe as new column code example
Example 1: append one column pandas dataframe
df1 = df1.join(df2[column])
Example 2: insert new column to dataframe
group = np.random.randint(10, size=6)
df_new['Group'] = group
df1 = df1.join(df2[column])
group = np.random.randint(10, size=6)
df_new['Group'] = group