here is my s, first column is my INDEX(I replace index with column ) not column and second is column
s = value
time
12-3 19:60:00 0.42724
22-4 20:30:00 0.58799
52-4 21:50:00 0.64879
62-5 22:10:00 0.64090
62-4 23:20:00 0.75934
type of this s is pandas.core.series.Series now I want to convert it to the list like this -:
[['12-3 19:60:00', 0.42724],
['22-4 20:30:00', 0.58799],
['52-4 21:50:00', 0.64879],
['62-5 22:10:00', 0.64090],
['62-4 23:20:00', 0.75934]]`
i have done this but not directly first i convert it into Dataframe then I applied this-:
s.reset_index().values.tolist()
if I convert it directly it gives me a result like :
[[Timestamp('12-3 19:60:00'), 0.42724],
[Timestamp('22-4 20:30:00'), 0.58799]...]