human
Append string to the start of each value in a said column of a pandas dataframe (elegantly)
assistant
Here is some code to append string 'str' at the beginning of each value in column 'col' of dataframe `df`

df['col'] = 'str' + df['col'].astype(str)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.