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