human
Convert a row in pandas into list
assistant
Here is some code to convert rows in pandas data frame `df` into list

df.apply(lambda x: x.tolist(), axis=1)

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