pandas create new column with value 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'