I have and excel file that contains lists like this:
month day time
1 1 00:00
1 2 02:00
1 3 08:00
2 1 19:00
2 2 04:00
I need them to be python datetime objects like this (1,1,00:00),(1,2,02:00)...
Can anyone help?
Copy from comment: I have done this:
Dates={'month': [val[0] for val in datain],
'day': [val[1] for val in datain],
'time': [val[2] for val in datain]}
df=DataFrame(Dates, columns= ['day', 'month','time'])
and it gives out this:
day month time 0 1 10 0.000000 1 1 10 0.041667 2 1 10 0.083333 3 1 10 0.125000 4 1 10 0.166667 5 1 10 0.208333 6 1 10 0.250000 7 1 10 0.291667 8 1 10 0.333333
I need to merge them together now and get the time right.