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