My code: #Converting the data frame into lists
observations = [] for i in range(len(df1)): observations.append([str(df1.values[i,j]) for j in range(0,10)])