human
pandas split string into columns
assistant
Here is some code to pandas split strings in column 'stats' by ',' into columns in dataframe `df`

df['stats'].str[1:-1].str.split(',', expand=True).astype(float)

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