Set value on an entire column of a pandas dataframe

You can use the assign function:

df = df.assign(industry='yyy')

Leave a Comment