human
How to remove square bracket from pandas dataframe
assistant
Here is some code to set data in column 'value' of dataframe `df` equal to first element of each list

df['value'] = df['value'].str[0]

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