df["values"] = None
for line in range(len(df)):
temp_list = list()
for colum in list(df)[2:]:
temp_list.append(df[colum][line])
df.at[line, colum] = temp_list
Perhaps there is an easier way than I did, but even as I did, at the end of the list it gives an initial value that is not needed there.
df["values"][1]
[122.4, 0.368674, None]
I expected this conclusion:
[122.4, 0.368674, None]
New contributor
DOOMon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.