I have a full year of data every minute:
dayofyear hourofday minuteofhour
1 0 0
.
.
365 23 57
365 23 58
365 23 59
I converted the dayofyear
to a date:
df['date']=pd.to_datetime(df['dayofyear'], unit='D', origin=pd.Timestamp('2009-12-31'))
dayofyear hourofday minuteofhour date
1 0 0 2010-01-01
1 0 1 2010-01-01
1 0 2 2010-01-01
1 0 3 2010-01-01
1 0 4 2010-01-01
How can I combine the hourofday
and minuteofhour
with date
in order to create a proper timestamp?
Like this maybe: '2010-12-30 19:00:00'
So that I can perform other time-filtering/subsetting etc in pandas later.