add value in new column to dataframe pandas code example Example: how to assign a new value in a column in pandas dataframe df = df.assign(industry='yyy')