I have a pandas DataFrame and I would like to make a new column with the same string in each row.
Currently I'm doing this.
tag=[]
for x in xrange(len(preds)): #preds is a np.array, same length of df
tag.append('MY STRING')
df['TAG']=tag
I know there must be a smarter way to do this.
Any help is appreciated.
df['TAG'] = 'MY STRING'