add a constant column to a pandas dataframe code example Example: python add column with constant value df['new'] = '1'