pandas add column values code example Example: insert new column to dataframe group = np.random.randint(10, size=6) df_new['Group'] = group